make_multiple_density_plot | R Documentation |
Combine many density distributions to one common plot.
make_multiple_density_plot(
densities,
legend.title,
title,
x.axis.label,
legend.size = 1
)
densities |
a list, each element holding the results from executing
the |
legend.title |
string. The legend title. |
title |
string. The plot title. |
x.axis.label |
string. The x-axis label. |
legend.size |
numeric. Default value: 1. |
mat = matrix(rnorm(60), ncol=20)
densities = apply(mat, 1, density)
names(densities) = c("1st", "2nd", "3rd")
make_multiple_density_plot(densities, legend.title = "Samples",
x.axis.label = "", title = "3 Normal Distribution Samples")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.