bbggboxplot: bbggboxplot

Description Usage Arguments Author(s) Examples

View source: R/reportfunctions.R

Description

boxplot with ggplot

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
bbggboxplot(
  data,
  factor,
  group,
  uniquecounts,
  ylabel = "Anzahl",
  xlabel = NULL,
  xrotate = FALSE,
  facet = NULL
)

Arguments

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

Author(s)

Stefan Bartels, email@biobits.eu

Examples

 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)

biobits/bbreportr documentation built on Dec. 26, 2021, 6:43 a.m.