ks_plot | R Documentation |
ks plot
ks_plot(
data,
fitted,
actual,
palette = ez_col,
size_line = 1,
size = 11,
env = parent.frame()
)
data |
A data.frame. |
fitted |
Vector of fitted values |
actual |
Vector of actual values |
palette |
Colour function. |
size_line |
width of line for |
size |
theme size for |
env |
environment for evaluating expressions. |
ks_plot(mtcars, "-disp", "am")
x = c(rnorm(100), rnorm(100) + 2)
label = c(rep('low', 100), rep('high', 100))
ks_plot(data.frame(x, label), "x", "label")
ks_plot(data.frame(x, label = factor(label, c('low', 'high'))), "x", "label")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.