ogive | R Documentation |
Generic function that plots the culmulative frequency curve.
ogive(x, ...)
## S3 method for class 'leem'
ogive(
x,
freq = "a",
decreasing = FALSE,
both = FALSE,
bars = FALSE,
histogram = FALSE,
bg = TRUE,
main = NULL,
xlab = NULL,
ylab = NULL,
grids = grid(col = "white"),
bgcol = "gray",
bgborder = NA,
barcol = "yellow",
histcol = barcol,
barborder = "gray",
histborder = barborder,
type = "b",
lpcol = "black",
lwd = 2,
pch = 19,
lty = 2,
...
)
x |
R object (list) of class leem. Use |
... |
further arguments passed to or from other methods. |
freq |
Character argument. Type of frequency with options: |
decreasing |
Logical argument. Default is |
both |
Logical argument. Default is |
bars |
Logical argument. Default is |
histogram |
Logical argument. Default is |
bg |
Logical argument. Default is |
main |
Insert the plot title. The default is |
xlab |
Insert the title of the x-axis graphic label. The default is |
ylab |
Insert the title of the y-axis graphic label. The default is |
grids |
Insert grids to plot. The default is |
bgcol |
Insert the background color. This argument is only valid when |
bgborder |
Insert the background border color. This argument is only valid when |
barcol |
Insert the barplot color. The default is |
histcol |
Insert the histogram color. The default is |
barborder |
Insert the barplot border color. This argument is only valid when |
histborder |
Insert the histogram border color. This argument is only valid when |
type |
Type of plot. The default is |
lpcol |
Type of line color. The default is |
lwd |
numeric argument. The line width. The default is |
pch |
Type of point. The default is |
lty |
Type of line. The default is |
Ogive plot.
library(leem)
# Example 1 - Both ogives
rnorm(36, 100, 50) |> new_leem(variable = 2) |> tabfreq() |> ogive(both = TRUE)
# Example 2 - Insert barplot
rnorm(36, 100, 50) |> new_leem(variable = 2) |> tabfreq() |> ogive(both = TRUE, bars = TRUE)
# Example 3 - Insert histogram
rnorm(36, 100, 50) |> new_leem(variable = 2) |> tabfreq() |> ogive(both = TRUE, histogram = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.