Dear Anupam,

Try

boxplot(DISO ~ POS * NODE_CAT, data = yourdata)

Another option would be the last example in ?boxplot

HTH,
Jorge.-

On Fri, Jul 11, 2014 at 4:38 PM, anupam sinha <anupam.cont...@gmail.com>
wrote:

> Dear all,
>             I need some help with plotting boxplots in groups. I have a
> file of the following format:
> -----------------------------------------
> POS     DISO    NODE_CAT
> ------------------------------------------
> A            20        Hubs
> C            30        Nonhubs
> B            50        Nonhubs
> B            10        Hubs
> A            25        Nonhubs
> C            80        Hubs
> --------------------------------------------
> I want to plot "boxplots" in such a way that DISO is on y-axis and the
> NODE_CAT is grouped according to POS. If I were to plot the above mentioned
> case I should get three groups of boxplots A, B, and C. Also each of the
> POS A, B and C should have two boxplots (one for Hubs and one for Nonhubs).
> Thanks in advance for any help.
>
> Anupam
>
>         [[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.
>

        [[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