Description Usage Arguments Value Examples
Mimicks ggridges
but using plotly
so that the output is interactive
1 2 3 4 5 6 | plotlyridges(data, vardens, varcat, linecolor = "darkblue",
fillcolor = "steelblue", fillopacity = 0.6, linewidth = 0.5,
scale = 0.9, logspaced = FALSE, cut.from = 0, cut.to = 3,
n = 512, bw = NULL, bw.separate = FALSE,
height.norm = "integral", round.digits = 2, x.min = 0,
height = NULL, width = NULL)
|
data |
data-frame of data to plot |
vardens |
name of the column in |
varcat |
name of the column in |
linecolor |
line color |
fillcolor |
fill color |
fillopacity |
fill opacity |
linewidth |
line width |
scale |
vertical scale of plots, compared to the spacing between plots. |
logspaced |
boolean, whether to use log-spaced points in calculating density |
cut.from |
how much to cut into the region to the left of the smallest data values, in units of the bandwidth. |
cut.to |
how much to cut into the region to the right of the greatest data values, in units of the bandwidth. |
n |
number of points used in calculation of density |
bw |
bandwidth to use in density calculation. if NULL, uses the default of |
bw.separate |
if TRUE, will use separately estimated bandwidth in each plot, overriding |
height.norm |
vertical normalization of plots. If 'integral', will normalize to unit area under the curve. If '1' will normalize to unit maximum height |
round.digits |
number of rounding digits used in hover labels |
x.min |
lower end of the x-axis range |
height |
passed as |
width |
passed as |
a plotly object
1 | #
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.