[R] BoxPlot basic help

Bert Gunter gunter.berton at gene.com
Sat Mar 8 23:48:25 CET 2014


You asked for basic training guides...

1. An Introduction to R ships with R. Did you miss it?

2. Google is your friend. There are a ton on the web. Search!

-- Bert

Bert Gunter
Genentech Nonclinical Biostatistics
(650) 467-7374

"Data is not information. Information is not knowledge. And knowledge
is certainly not wisdom."
H. Gilbert Welch




On Sat, Mar 8, 2014 at 9:18 AM, arun <smartpink111 at yahoo.com> wrote:
> Hi,
> May be this helps:
> dat <- read.table(text="Designation Basic
> ASA         .25
> ASA         .28
> ASA         .32
> TASA       .45
> TASA       .33
> TASA       .43",sep="",header=TRUE,stringsAsFactors=FALSE)
>  boxplot(Basic~Designation,data=dat,col=2:3)
> #or
> library(ggplot2)
>  ggplot(dat,aes(x=Designation,y=Basic,fill=Designation))+geom_boxplot()
>
> A.K.
>
> Hello - I've been away from stat programming for a very long time and
> am just getting back into it. I'm not used to a non GUI interface which
> is where I'm running into problems with R.
>
> I have a data set that i'd like to use to create boxplots.
>
> the dataset sample looks as follows
>
> Designation Basic
> ASA         .25
> ASA         .28
> ASA         .32
> TASA       .45
> TASA       .33
> TASA       .43
>
> I have my grouping variable under 'designation' that i would like to use to create the boxplot.
>
> Could i request some help on the syntax to use after i have read
>  this data file into a variable, say 'data' to group the information as
> per the grouping variable ? how do i define the grouping variable and
> use it in the boxplot command ?
>
> Any information would be greatly appreciated. in addition, if
> you could also point me to some basic training guides, that would be
> helpful as well.
>
> Thanks!
>
> Raol
>
> ______________________________________________
> 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