ggfree
ggfree copied to clipboard
ggplot2-style plots with base R graphics
Need to detect the dimensions of the plot device before specifying the xlim and ylim ranges
```R > ridgeplot(rnorm(100)) Error in ridgeplot(rnorm(100)) : Unsupported class of argument x (must be list) ``` Expected response: generate a ridgeplot with a single density.
credit: Norm Matloff for pointing this out however, the `MASS` library already has an implementation of parallel coordinates via `parcoord` - worth the effort?
```R > slopegraph(t(df[1:2, taxa]), names.arg=c('sample1', 'sample2'), log='y') There were 12 warnings (use warnings() to see them) > warnings() Warning messages: 1: In plot.xy(xy.coords(x, y), type = type, ...) : "log"...
Throws the following error: ```R Error in axis(side = 2, at = seq(step, n * step, step), labels = labels, : 'at' and 'labels' lengths differ, 1 != 3 ```
Currently we are using an arbitrary numeric index to arrange densities along the y-axis. This causes problems if the labels are numeric, *e.g.*, progressively increasing years.