Hello John,

I apologize for the delayed response.  Yes I am referring to the same type
of data in the data sets.  For example, the arsenic concentrations in
individual groundwater monitoring wells at a groundwater contaminated site,
where one well may have 12 concentration measurements, another well has 10,
etc.

Thanks
Janh


On Fri, Mar 22, 2013 at 5:31 PM, John Kane <jrkrid...@inbox.com> wrote:

> Hi Janh,
>
> When you say that you have "multiple data sets of unequal sample sizes"
> are you speaking of the same kind of data"  For example are you speaking of
> data from a set of experiments where the variables measured are all the
> same and where when you graph them you expect the same x and y scales?
>
> Or are you talking about essentilly independent data sets that it makes
> sense to graph in a grid ?
>
>
> John Kane
> Kingston ON Canada
>
>
> > -----Original Message-----
> > From: annij...@gmail.com
> > Sent: Fri, 22 Mar 2013 10:46:21 -0400
> > To: dcarl...@tamu.edu
> > Subject: Re: [R] boxplot
> >
> > Hello All,
> >
> > On the subject of boxplots, I have multiple data sets of unequal sample
> > sizes and was wondering what would be the most efficient way to read in
> > the
> > data and plot side-by-side boxplots, with options for controlling the
> > orientation of the plots (i.e. vertical or horizontal) and the spacing?
> > Your
> > assistance is greatly appreciated, but please try to be explicit as I am
> > no
> > R expert.  Thanks
> >
> > Janh
> >
> >
> >
> > On Thu, Mar 21, 2013 at 9:19 AM, David L Carlson <dcarl...@tamu.edu>
> > wrote:
> >
> >> Your variable loc_type combines information from two variables (loc and
> >> type). Since you are subsetting on loc, why not just plot by type?
> >>
> >> boxplot(var1~type, data[data$loc=="nice",])
> >>
> >> ----------------------------------------------
> >> David L Carlson
> >> Associate Professor of Anthropology
> >> Texas A&M University
> >> College Station, TX 77843-4352
> >>
> >>> -----Original Message-----
> >>> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
> >>> project.org] On Behalf Of Jim Lemon
> >>> Sent: Thursday, March 21, 2013 4:05 AM
> >>> To: carol white
> >>> Cc: r-h...@stat.math.ethz.ch
> >>> Subject: Re: [R] boxplot
> >>>
> >>> On 03/21/2013 07:40 PM, carol white wrote:
> >>>> Hi,
> >>>> It must be an easy question but how to boxplot a subset of data:
> >>>>
> >>>> data = read.table("my_data.txt", header = T)
> >>>> boxplot(data$var1[data$loc == "nice"]~data$loc_type[data$loc ==
> >>> "nice"])
> >>>> #in this case, i want to display only the boxplot loc == "nice"
> >>>> #doesn't display the boxplot of only loc == "nice". It also displays
> >>> loc == "mice"
> >>>>
> >>> Hi Carol,
> >>> It's them old factors sneakin' up on you. Try this:
> >>>
> >>> boxplot(data$var1[data$loc == "nice"]~
> >>>   as.character(data$loc_type[data$loc == "nice"]))
> >>>
> >>> Jim
> >>>
> >>> ______________________________________________
> >>> R-help@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.
> >>
> >> ______________________________________________
> >> R-help@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.
> >>
> >
> >       [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-help@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.
>
> ____________________________________________________________
> FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
> Check it out at http://www.inbox.com/earth
>
>
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to