Plot Empirical Cummulative Distribution Function for xvar

ecdfgram(
  data,
  xvar,
  grpvar = NULL,
  trans = scales::identity_trans(),
  xaxis_n_breaks = 7,
  xaxis_title = "",
  yaxis_title = "Cummulative Frequency",
  xaxis_format_args = list()
)

Arguments

data

data to plot

xvar

xvar to plot

grpvar

var to group the data by

trans

transformation to apply from the scales package

xaxis_n_breaks

number of breaks on the x_axis

xaxis_title

x axis title

yaxis_title

y axis title

xaxis_format_args

#TODO

Value

a plotly object

Examples

ecdfgram(ggplot2::diamonds, price, color)