[R] A rebel boxplot question
ONKELINX, Thierry
Thierry.ONKELINX at inbo.be
Tue Oct 9 10:17:23 CEST 2007
Sorry, but I can't help you with your problem isntalling ggplot2. I'm a
WinXP user and have no experience with R on Linux. Maybe Hadley Wickam
could help you out on this one.
Cheers,
Thierry
------------------------------------------------------------------------
----
ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature
and Forest
Cel biometrie, methodologie en kwaliteitszorg / Section biometrics,
methodology and quality assurance
Gaverstraat 4
9500 Geraardsbergen
Belgium
tel. + 32 54/436 185
Thierry.Onkelinx op inbo.be
www.inbo.be
Do not put your faith in what statistics say until you have carefully
considered what they do not say. ~William W. Watt
A statistical analysis, properly conducted, is a delicate dissection of
uncertainties, a surgery of suppositions. ~M.J.Moroney
> -----Oorspronkelijk bericht-----
> Van: r-help-bounces op r-project.org
> [mailto:r-help-bounces op r-project.org] Namens p.valdes op arsystel.com
> Verzonden: maandag 8 oktober 2007 18:42
> Aan: S.Ellison op lgc.co.uk
> CC: r-help op r-project.org
> Onderwerp: Re: [R] A rebel boxplot question
>
> Thanks to all for the answers
>
> -----------
> Thierry : a very interesting answer... but I'm still trying
> to figure how to install ggplot2 :-)
>
> install.packages("ggplot")
> Warning in install.packages("ggplot2") : argument 'lib' is
> missing: using '...R/i486-pc-linux-gnu-library/2.5'
>
> ??
>
> also installing the dependency 'colorspace' OK
>
> ....
> .gzip: /tmp/Rtmpl8LWFh/downloaded_packages/ggplot2_0.5.5.tar.gz:
> unexpected end of file
> tar: Unexpected EOF in archive
> tar: Unexpected EOF in archive
> tar: Error is not recoverable: exiting now .. 3: installation
> of package 'ggplot2' had non-zero exit status in:
> install.packages("ggplot2")
>
>
> --------------------------------
> R.version() says:
>
> arch i486
> os linux-gnu
> system i486, linux-gnu
> status
> major 2
> minor 5.1
> year 2007
> month 06
> day 27
> svn rev 42083
> language R
> version.string R version 2.5.1 (2007-06-27)
>
> My OS is a Linux Debian Sid
>
>
>
> -----------
> S. Ellison wrote >> specifying at= for both plots might help.
>
> Ellison, I take a look to the opcion "at" but I can not
> understand reading the documentation how to use this option.
>
> for instance:
>
> month <-c( 1, 2, 3, 4, 5, 6, 7,8,9,10,11,12)
> y <-c( 1, 1, 1, 4, 4, 4, 4,4,1, 3, 3, 3)
> z <-c( 1, 3, 4, 5, 6, 7,8,9,10,11,12)
>
> boxplot(y ~ month, add=F, at= 1:12) #OK, now lets try to
> overlap the second plot
>
> boxplot(y ~ month, add=T, at= 1:12)
> #Error in
> model.frame(... variable lengths differ (found for 'month')
> boxplot(y ~
> month, add=T, at= 1:11) #Error in
> model.frame... variable lengths differ (found for 'month')
> boxplot(y ~
> month, add=T, at= 1,3,4,5,6,7,8,9,10,11,12) #Error in
> model.frame...
> variable lengths differ... boxplot(y ~ month, add=T, at=
> c(1,3,4,5,6,7,8,9,10,11,12)) #Error in model.frame...
> variable lengths differ...
>
>
> ???
>
> Another try
>
> 1/12 = 0.08333333
>
> boxplot(y ~ month, add=T, at= 0.0833333) #Error in
> bxp(list(stats = c(20, 20, 20, 20, 20, 0, 0, 0, 0, 0, 20, 20, :
> 'at' must have same length as 'z$n', i.e. 12
> boxplot(y ~ month, add=T, at= 12) #same error ... 'at'
> must have same length as 'z$n', i.e. 12
>
> Glups. :-}
> And now what?
>
> Pablo Valdes
>
>
> >>>> <p.valdes op arsystel.com> 04/10/2007 16:39:41 >>>
> > Dear R list members
> > I am trying to improve a boxplot with 2 data sets. I run somethinkg
> > like
> >
> > boxplot(data1 ~ month, add=F, col = "red", ...)
> > boxplot(data2 ~ month, add=T, col = "blue", ...)
> >
> > The problem is that the data from February are missing for
> data2, so R
> > think that must take little more space between the data classes in
> > data 2 and then both data gropus are not aligned. In the R
> > documentation I do not find any posile solution for tell R
> that I want
> > reserve a extra space for this month, So the boxplot is
> erroneous and
> > the x axis have a strange numeration
> >
> > 1 2 3 4 54 65 76 ... etc
> >
> > I would be grateful if anyone could suggest how to tell R That the
> > boxplots must be fitted to the same x class in both data groups. To
> > make a false data group with a 0 valor for february is not
> aceptable
> > in this case
> >
> > Sincerely
> > Pablo Valdes
> >
> > ______________________________________________
> > R-help op 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.
> >
> > *******************************************************************
> > This email contains information which may be confidential and/or
> > privileged, and is intended only for the individual(s) or
> > organisation(s) named above. If you are not the intended recipient,
> > then please note that any disclosure, copying, distribution
> or use of
> > the contents of this email is prohibited. Internet
> communications are
> > not 100% secure and therefore we ask that you acknowledge
> this. If you
> > have received this email in error, please notify the sender
> or contact
> > +44(0)20 8943 7000 or postmaster op lgcforensics.com immediately, and
> > delete this email and any attachments and copies from your system.
> > Thank you.
>
> > LGC Limited. Registered in England 2991879.
> > Registered office: Queens Road, Teddington, Middlesex TW11 0LY, UK
>
> ______________________________________________
> R-help op 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