[R] Beginner having issues with making pie charts and other graphs

PIKAL Petr petr.pikal at precheza.cz
Thu Oct 31 15:21:01 CET 2013


Hi

> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Carl Witthoft
> Sent: Thursday, October 31, 2013 12:27 PM
> To: r-help at r-project.org
> Subject: Re: [R] Beginner having issues with making pie charts and
> other graphs
> 
> Rule Number One:  Don't use pie charts.
> 
> Rule Number Two:  NEVER EVER USE PIE CHARTS!

However, if you still, despite of beeing warned, want to use pie chart see

?pie
pie(rep(1, 24), col = rainbow(24), radius = 0.9)

Regards
Petr


> 
> To learn how to create graphs in R, start with ?plot , ?points,
> ?lines.
> Later on you can investigate ?lattice, ?grid,  and ?ggplot2 .
> The fact that you're looking 'online' instead of in R's builtin help
> mechanisms is disconcerting.
> 
> 
> 
> 
> blindchicken11 wrote
> > I just started using R software and I'm having some issues making
> > graphs/charts.[snip]
> >
> > I want to start off by just making a pie chart for the categorical
> > data like south, sex, etc. But I've tried everything and can't seem
> to
> > find any information online to help me. The few pie graphs I've
> gotten
> > to show have been giant black and white blobs with no information on
> > them. Any help would be greatly appreciated!
> 
> 
> 
> 
> 
> --
> View this message in context: http://r.789695.n4.nabble.com/Beginner-
> having-issues-with-making-pie-charts-and-other-graphs-
> tp4679418p4679443.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list