> 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
> Non
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
wrote:
> Dear all,
> I need some help with plotting boxplots in groups. I have a
> file of the followin
Dear all,
I need some help with plotting boxplots in groups. I have a
file of the following format:
-
POS DISONODE_CAT
--
A20Hubs
C30Nonhubs
B50
The grouped boxplot is one of the features included in the HH package.
An example is posted on my site
http://astro.ocis.temple.edu/~rmh/HH/bwplot-color.pdf
Reconstructing Figure 3 in your file GroupedBoxplot.pdf from your
11/24/2009 10:35 AM email would be easy.
__
Thanks Petr!
On Thu, Nov 26, 2009 at 12:31 AM, Petr PIKAL wrote:
> Hi
>
> r-help-boun...@r-project.org napsal dne 24.11.2009 18:44:43:
>
> > Back in March Soren Vogel asked exactly the same thing:
> >
> > Here is the solution that was offered then. (He offered a dataset as
> > requested in the P
Hi
r-help-boun...@r-project.org napsal dne 24.11.2009 18:44:43:
> Back in March Soren Vogel asked exactly the same thing:
>
> Here is the solution that was offered then. (He offered a dataset as
> requested in the Posting Guide.) ... with only a minor adjustment:
>
> g <- rep.int(c("A", "B",
Back in March Soren Vogel asked exactly the same thing:
Here is the solution that was offered then. (He offered a dataset as
requested in the Posting Guide.) ... with only a minor adjustment:
g <- rep.int(c("A", "B", "C", "D"), 125)
t <- rnorm(5000)
a <- sample(t, 500, replace=TRUE)
b <- sam
Gary wrote:
Hi R Users,
I'm interested in plotting a grouped boxplot (please see attached file for
sample). Can anyone suggest a function{package} which can help me achieve
this.
Your attachment did not pass the list's filters. Anyway, see ?boxplot.
Uwe Ligges
Thanks,
Gary
---
Hi R Users,
I'm interested in plotting a grouped boxplot (please see attached file for
sample). Can anyone suggest a function{package} which can help me achieve
this.
Thanks,
Gary
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinf
## you may need to
## install.packages("HH")
library(HH)
tmp <- data.frame(y=rnorm(500),
g=rep.int(c("A", "B", "C", "D"), 125),
a=factor(rbinom(500, 1, .5)))
bwplot(y ~ g | a, data=tmp)
bwplot(y ~ a | g, data=tmp)
tmp$ga <- with(tmp, interaction(a, g))
posi
Q1:
See if this seems any better. I took the liberty of reconstruction
your initial example in a longer dataframe:
dta <- data.frame(val = sample(t,1000), g = gl(4, 250, labels=c("A",
"B", "C", "D")) , G2 = gl(2,1, labels=c("XX", "YY")))
#arguments to data.frame are recycled so one does no
Pls forgive me heavy-handed data generation -- newby ;-)
### start ###
# example data
g <- rep.int(c("A", "B", "C", "D"), 125)
t <- rnorm(5000)
a <- sample(t, 500, replace=TRUE)
b <- sample(t, 500, replace=TRUE)
# what I actually want to have:
boxplot(a | b ~ g)
# but that does obviously not pr
12 matches
Mail list logo