Description Usage Arguments Author(s) Examples
View source: R/reportfunctions.R
boxplot with ggplot
1 2 3 4 5 6 7 8 9 10 |
data |
dataframe |
factor |
the factor to count |
group |
the group |
uniquecounts |
the unique counts |
ylabel |
the label of y axis default="Anzahl" |
xlabel |
the label of x axis default=NULL |
xrotate |
if TRUE the x and y axis will switch default=FALSE |
facet |
if a facet is given plot will be faceted default=NULL |
Stefan Bartels, email@biobits.eu
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
PatID<-seq(1,50)
PatientWeight<-runif(50, min=40, max=100)
PatientClass<-rep(c("ClassA","ClassB","ClassC","ClassB","ClassC"),10)
df<-as.data.frame(cbind(PatID,PatientWeight,PatientClass))
df$PatientWeight<-as.double(df$PatientWeight)
p1<-bbggboxplot(data=df,factor="PatientWeight",group="PatientClass",
uniquecounts="PatID",ylabel="Anzahl",bin=1)
p1
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.