polygon.freq | R Documentation |
The polygon is constructed single or on a histogram. It is necessary to execute the function previously hist.
polygon.freq(histogram, frequency=1, ...)
histogram |
Object constructed by the function hist |
frequency |
numeric, counts(1), relative(2) and density(3) |
... |
Other parameters of the function hist |
Felipe de Mendiburu Delgado
polygon.freq
, table.freq
, stat.freq
,
inter.freq
, sturges.freq
, join.freq
,
graph.freq
, normal.freq
library(agricolae)
data(growth)
#startgraph
h1<-with(growth,hist(height,border=FALSE,xlim=c(6,14)))
polygon.freq(h1,frequency=1,col="red")
#endgraph
#startgraph
h2<-with(growth,graph.freq(height,frequency=2,col="yellow",xlim=c(6,14)))
polygon.freq(h2,frequency=2,col="red")
#endgraph
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.