plotly_density | R Documentation |
Creates a density plot of all columns of a matrix or data.frame like structure.
plotly_density(mat, title = "", xlab = "", palette = viridis)
mat |
Matrix for column-wise kernel density estimate curves. |
title |
Plot title. |
xlab |
X axis label. |
palette |
Colour palette function (function that returns valid colour values, eg 'rainbow'). |
A plotly htmlwidget
plotly_density(iris[, -5],
title = "Density plot of Iris dataset",
xlab = "Value")
mat <- matrix(rnorm(10000), ncol = 10)
plotly_density(mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.