Description Usage Arguments Value
View source: R/Bivariate_plots.R
This function creates a ridge plot using the packages ggplot2 and ggridges. The ridge plot allows you to plot the distribution of a numeric variable separated by the levels of a factor.
1 2 3 4 5 6 7 8 9 10 |
data |
dataset |
x.var |
a numeric variable |
y.var |
a factor variable |
title |
plot title |
subtitle |
subtitle |
xlabel |
x axis label |
ylabel |
y axis label |
A ridge plot of the two variables
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.