Displaying 20 results from an estimated 7000 matches similar to: "multiple groups with different colors in boxplot"
2008 Feb 27
1
ggplot2 boxplot confusion
Ultimately my aim is to get a plot of density faceted by 2 factors with a
horizontal boxplot overlaid on each density plot in the grid to indicate
summary stats. So I've been experimenting with creating boxplots and density
plots. Here's some representative data.
series = c('C2','C4','C8','C10','C15','C20')
ids =
2009 Apr 21
3
ggplot2 - boxplot of variables / columns
Hi,
ggplot/qplot is great - it has really helped me do some nice things.
However, simple boxplot of different columns/variables is a bit
tricky, because of (i think) qplot's generic Y conditional on X input
form. Se below.
# Some data:
a <- rnorm(100)
b <- rnorm(100,1,2)
c <- rnorm(100,2,0.5)
# normal boxplot of a,b,c
boxplot(a,b,c) # Looks good
library(ggplot2) # loads qqplot2
#
2007 Oct 04
5
A rebel boxplot question
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.
2009 Feb 26
1
ggplot2: labels points with different colors or idnumbers
Dear list,
Using ggplot2 I could produce both boxplot and points in the same plot but instead of points I would like to label the different
subjects with different colors or their idnumbers. Is there away to do it? Also how can I put three plots on the same graph with ggplot2?
mfrow=c(3,1) did not do the job.
> dat
group time id freq
1 1 00 0018 5.21
2 1 00 3026 3.13
2009 Aug 12
1
A function for plotting a boxplot with added dot and bars (for mean and SE) - please help improve my code
Hello people,
A while back I wanted to plot boxplots with interactions that will have a
dot for the mean of the sample + bars for the SE.
After searching for some code, I found something that did it for one level,
but couldn't find something that will allow for interactions the way the
original boxplot does.
After playing with the original code, I found a way for allowing the boxplot
code to
2011 Oct 04
1
ggplot2: changing default colors of boxplot
Hi,
I wanted to change the default colors appearing in boxplot. For example, the
following code (from the package/documentation):
===========
library(ggplot2)
p <- ggplot(mtcars, aes(factor(cyl), mpg))
p + geom_boxplot(aes(fill = factor(am)))
===========
Gives the default colors. What do I need to do to modify this so that:
1. Change the colors from green and red to blue and black
2. Only
2015 Jun 16
4
Ayuda boxplot ggplot2
Hola a todos
Me gustaría saber si me pueden ayudar con lo siguiente.
Realicé un Boxplot usando ggplot2 para visualizar el comportamiento de dos
variables. Visualmente no se notan las diferencias porque la gráfica de la
derecha (parásitos en el abdomen) llega hasta 20 en el eje y. ¿Cómo puedo
hacer para que las dos gráficas muestren la misma escala en el eje Y, es
decir, que las dos lleguen a 60?
2013 May 11
3
boxplot with grouped variables
my dataset looked like this in the beginning:
>Daten
V1 V2 V3
1 Dosis Gewicht Geschlecht
2 0 6.62 m
3 0 6.65 m
4 0 5.78 m
5 0 5.63 m
I need box plots for V2 with all combination of V1 and V3, so I deleted the
first row, and tried this:
boxplot(Daten$V2[Daten$V3=="m"])
but it does not work and I
2010 Sep 06
5
boxplot knowing Q1, Q3, median, upper and lower whisker value
Dear list,
I am using a external program that outputs Q1, Q3, median, upper and lower whisker values for various datasets simultaneously in a tab delimited format. After importing this text file into R, I would like to plot a boxplot using these given values and not the original series of data points, i.e. not using something like boxplot(mydata).
Is there an easy way for doing this? If I am not
2011 Sep 26
2
Boxplot BUT with Mean, SD, Max & Min ?
People,
It appears that there is no way of getting Boxplots to plot using Mean,
SD, Max & Min - is there something else that would do what I want? I
couldn't find it . .
Thanks,
Phil.
--
Philip Rhoades
GPO Box 3411
Sydney NSW 2001
Australia
E-mail: phil at pricom.com.au
2019 Sep 23
2
help: boxplot multivariables
Hola,
estoy tratando de hacer un boxplot para compara diferentes comportamientos.
Tengo un set de datos con 17 columnas, quiero crear un boxplot
considerando 3 de ellas. He buscado en foros y siempre responden esta
pregunta con subconjuntos de datos dentro de una misma columna, y no he
logrado realizarlo.
Este es un ejemplo de mis datos:
ID: id animal
EP: episodio
AA: acostado y alerta
AD:
2024 Aug 16
1
boxplot notch
I don't see anything obviously wrong here. There may be something
subtle, but we probably won't be able to help without a reproducible
example ...
On 2024-08-16 9:24 a.m., SIBYLLE ST?CKLI via R-help wrote:
> Dear community
>
>
>
> I tried the following code using geom_boxplot() and notch=TRUE. Does anyone
> know if the command ?notch=TRUE? is at the wrong place in
2010 Jul 07
2
Boxplots from data.frame
Hi all,
I'm trying to use ggplot to make a boxplot of some data, but I can't seem to
figure out how to make it use the data I'm giving it.
The data is in a data.frame so that it has two columns:
>meltl
value L1
1234 1
1234 1
1235 1
...
1255 1
2335 2
3444 2
...
10001 50
12311 50
...
The first column is my x value, the second is my y.
I'd like to produce one boxplot for
2009 Jan 07
1
Problem with ggplot2 - facet_wrap and boxplot
Hello R users and Hadley,
Back again with a little problem in ggplot2 =o) (ggplot 0.8.1, R 2.8.0)
Here the problem :
library(ggplot2)
df <- data.frame(id = 1:100, x1 = c(rnorm(50), rnorm(50, 1)), x2 =
c(rnorm(50), rnorm(50, 1.5)), x3 = c(rnorm(50, 0.5), rnorm(50, 2.5)), group
= as.factor(rep(c("a", "b"), each = 50)))
df.melt <- melt(df, id = c("id",
2011 Nov 16
1
boxplot strange behavior
Hello,
I generate box plots from my data like this:
qplot(x=xxx,y=column,data=data,geom="boxplot") + xlab("xxx") + ylab(ylabel) + theme_bw() + scale_y_log10() + geom_jitter(alpha=I(1/10))
The problem is that I see lot of points above the maximum at the same level as some outliers. It looks very weird as I expected the outliers to be "few" and specially not see any
2012 Oct 05
3
Multiple graphs > boxplot
Dear all
I am trying to represent a dependent variable (treatment) against different independent variables (v1, v2, v3....v20). I am using the following command:
boxplot(v1~treatment,data=y, main="xxxxxx",xlab="xxxxxx", ylab="xxxxxx")
However, it provides me only one graph for v1~treatment. For the other comparisons, I have to repeat the same command but changing
2009 Mar 21
5
Plot and Boxplot in the same graph
Hii,
Is it possible, to use the plot() funktion and the boxplot() funktion
together ?
I will plot a simple graph and additionally to the graph on certain places
boxplots. I have imagined to plot the graph a little bit transparency and
show in the same graph on certain places boxplots....
Is it possible to do it in this way ?
greetings,
johnh
--
View this message in context:
2024 Aug 16
2
boxplot notch
Thanks Ben,
Here the reproducible example.
It works without notch=TRUE, but provides an error with notch=TURE
Error in `geom_boxplot()`:
! Problem while converting geom to grob.
? Error occurred in the 1st layer.
Caused by error in `ans[ypos] <- rep(yes, length.out = len)[ypos]`:
! replacement has length zero
Run `rlang::last_trace()` to see where the error occurred.
Warning message:
In
2010 Feb 12
1
Need help on boxplot panel chart
Hi there:
I am new to R and creating a boxplot panel chart to show a test result.
I have four output variables (OV1, OV2, OV3, OV4) reflecting effects of the
variation of three status parameters (SP1, SP2, SP3) on them at three
different locations (Loc1, Loc2, Loc3). My plan is that displaying ONE OV
change with ONE SP over three Loc in each boxplot (i.e., Loc is X axis and
OV value is Y axis).
2011 Jun 24
4
ggplot2 month and year boxplot x axis order problem
Hi
I am very new to R, I am attempting to produce a monthly boxplot with the
following fish thermal telemetry data:
ID Temp Date.Time Month.Year Month Week Shortdate
1 1734 4.4140 04/05/2010 11:56 05,2010 May 19 04/05/2010
2 1734 4.1002 04/05/2010 12:06 05,2010 May 19 04/05/2010
3 1734 3.9433 04/05/2010 12:09 05,2010 May 19 04/05/2010
4 1734 3.6295