df <- datana::fishgrowth
histbxp(y=df$length)
### distribution of 'length'
## with mean refval
histbxp(y=df$length, print.refval = TRUE)
## with given refval
histbxp(y=df$length, print.refval = TRUE, refval = 250)
## changing labels
histbxp(y=df$length, print.refval = TRUE, refval = 250,
freqlab = "FREQ", varlab = "LENGTH")
## changing colors
histbxp(y=df$length, print.refval = TRUE, refval = 250,
freqlab = "FREQ", varlab = "LENGTH",
col.hist = "blue",
col.bxp = "green",
col.refval = "red")
### distribution of 'scale'
## with mean refval
histbxp(y=df$scale, print.refval = TRUE)
## landscape mode
histbxp(y=df$scale, print.refval = TRUE, portrait = FALSE)
## with limits
histbxp(y=df$scale, print.refval = TRUE, portrait = FALSE,
freqlim = c(0,100),
varlim = c(0, max(df$scale)))
Run the code above in your browser using DataLab