AndriSignorell / DescTools

Tools for Descriptive Statistics and Exploratory Data Analysis
http://andrisignorell.github.io/DescTools/
82 stars 18 forks source link

`plot.Desc.numfact` with `type="dens"` should allow non-default `xlab` and `ylab` (Desc plots) #145

Open GegznaV opened 4 months ago

GegznaV commented 4 months ago

This code results in an error. For consistency, ylab

Desc(temperature ~ driver, data = d.pizza) |> plot(xlab = "ok", ylab = "ok", type="dens")
Error in PlotMultiDens.default(z, xlim = xlim, col = col, args.legend = args.legend,  : 
  formal argument "ylab" matched by multiple actual arguments

And the following code doesn't change axis labels either:

Desc(temperature ~ driver, data = d.pizza) |> plot(xlab = "ok", type="dens")

Without type="dens" works as expected.