Cope 2.5.0
My personal "standard library" of all the generally useful code I've written for various projects over the years
|
go.Figure Cope.plotly.ridgeplot | ( | 'DataFrame' | df, |
str | x, | ||
str | y = None , |
||
str | z = None , |
||
float | dist = .5 , |
||
float | overlap = 0 , |
||
** | kwargs | ||
) |
Create a ridgeplot in plotly.
x
is the name of the column in df
that specifies the x data. y
can either be the name of the column of the y axis data, if df
is in long format, or left unspecified if df
is in wide format. If in wide format, it's implied that the data in the columns specified by z
are the y data. z
is either a list of columns of y
data (the column names are then z
) if df
is in wide format, or the column name in df
of the labels that say what each sample belongs to, if in long format. dist
dictates how close each z
is. 0 means the max value of each z
is the min value of the one above it, and 1 means the min value of each z
is the start of the shading of the z
above it. Increasing this also makes each z
taller to compensate. overlap
effects the size of the shading directly. Usually between -1 and 1.