plotlyridges: Mimicks 'ggridges' but using 'plotly' so that the output is...

Description Usage Arguments Value Examples

View source: R/plotlyridges.R

Description

Mimicks ggridges but using plotly so that the output is interactive

Usage

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)

Arguments

data

data-frame of data to plot

vardens

name of the column in data to use on the x-axis ('density variable')

varcat

name of the column in data to use for splitting plots ('category variable')

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 density.

bw.separate

if TRUE, will use separately estimated bandwidth in each plot, overriding bw

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 height to the plotly object

width

passed as width to the plotly object

Value

a plotly object

Examples

1
#

rushkin/bitsandends documentation built on Oct. 21, 2020, 11:43 a.m.