Learn R Programming

epade (version 0.2.2)

histogram.ade: Histogram

Description

plot multiple histograms in one plot

Usage

histogram.ade(x, group=NULL, w=NULL, data=NULL, vnames=NULL, freq=FALSE,
         breaks="Sturges", density=NULL, angle=NULL, xlab=NULL, ylab=NULL,
         main="", xlim=NULL, ylim=NULL, legendon="topright", xticks=NULL,
         col=NULL, tcol=NULL, bgcol=NULL, lcol=NULL, alpha=NULL, lwd=1,
         kern=TRUE, norm=TRUE, bars=TRUE, wall=0, v=NULL, h=NULL, lty=2)

Arguments

x
  • a numeric vector
a string with the name of the variable in the data.frame a formula x~group

item

  • group
  • a string with the name of the group variable in the data.frame
  • w
  • data
  • vnames
  • freq
  • breaks
  • density
  • angle
  • xlab
  • ylab
  • main
  • xlim
  • ylim
  • legendon
  • "bottom"
  • "bottomleft"
  • "left"
  • "topleft"
  • "top"
  • "topright"
  • "right"
  • "center"
  • xticks
  • col
  • tcol
  • bgcol
  • lcol
  • alpha
  • lwd
  • kern
  • norm
  • bars
  • wall
  • v
  • h
  • lty

itemize

  • "bottomright"

Examples

Run this code
g<-rbinom(1000, 1, 0.5)
x<-rnorm(1000)+g
histogram.ade(x, g, wall=3, breaks=24)
histogram.ade(x, g, wall=2, bars=FALSE)

Run the code above in your browser using DataLab