histGOF | R Documentation |
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 |
data.frame to plot |
x |
character string with name of column for x |
title |
title |
color |
data columns to set different colors in plot, interpreted as factor |
fx |
function for transformation of x before plotting |
bins |
number of histogram bins, if NA, bins are set using Sturges' formula |
refline |
add reference line (default =TRUE) or not (FALSE) |
control |
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.