View source: R/reportfunctions.R
bbggboxplot | R Documentation |
boxplot with ggplot
bbggboxplot(
data,
factor,
group,
uniquecounts,
ylabel = "Anzahl",
xlabel = NULL,
xrotate = FALSE,
facet = NULL
)
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
## 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.