[R] boxplot overlap beeswarm
Julia89
Julias_89 at gmx.net
Thu Sep 24 09:27:24 CEST 2015
Hi everybody,
I'm new and i need help very fast.
I will make a transparent boxplot overlap a beeswarm.
I don't want to use ggplot2, i will use ggplot.
Here is my own script but it doesn't worked.
Maybe you can help me.
Thanks in advance
Julia
require(beeswarm)#rohdaten boxplots
rm(list=ls())
setwd("C:/Dokumente und Einstellungen/jbellsta/Desktop/Paper")
#read data
data =
read.csv(file="HypocotylCellLength.csv",stringsAsFactors=FALSE,header=TRUE,
as.is=TRUE, sep=",")
str(data)
attach(data)
#schreibe gröÃten wert in Variable L.max
L.max <- max(LengthMM)
boxplot(LengthMM ~ Label,
boxwex=.3,
outline=F,
add=T,
ylim=c(0, L.max))
beeswarm(LengthMM ~ Label, # Datenpunkte LengthMM~Label
pch = 20,
cex= .6,
spacing = .3,
method =c("swarm"),
col= c('grey')
)
--
View this message in context: http://r.789695.n4.nabble.com/boxplot-overlap-beeswarm-tp4712727.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list