powered by
Histogram GOF showing histogram, smooth density, and normal density as reference line and caption added as reurned by get.caption
histGOF( data, x, title = "", color = "", fx = NULL, bins = NA, refline = TRUE, control = GOF.control() )
data.frame to plot
character string with name of column for x
title
data columns to set different colors in plot, interpreted as factor
function for transformation of x before plotting
number of histogram bins, if NA, bins are set using Sturges' formula
add reference line (default =TRUE) or not (FALSE)
an optional list of control settings. See GOF.control for the names of the settable control values and their effect.
dd<-data.frame(CWRES=rnorm(100),gr=rep(LETTERS[1:5],20)) histGOF(dd,"CWRES",color="gr")
Run the code above in your browser using DataLab