ridgeplot: Create a ridge plot

Description Usage Arguments Value

View source: R/Bivariate_plots.R

Description

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.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
ridgeplot(
  data,
  x.var,
  y.var,
  title = NULL,
  subtitle = NULL,
  xlabel = NULL,
  ylabel = NULL,
  ...
)

Arguments

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

Value

A ridge plot of the two variables


AHWA-Lab-Frankfurt/bwsoplots documentation built on March 25, 2021, 2:35 p.m.