ggdensity: Density Plot

View source: R/ggplots.R.R

ggdensityR Documentation

Density Plot

Description

Density Plot

Usage

ggdensity(
  data,
  col,
  fill = "steelblue",
  alpha = 0.5,
  summary_stats = FALSE,
  text_xpos = NULL,
  text_ypos = 0.04,
  text_sigfigs = Inf,
  ...
)

Arguments

data

datafrmae

col

column (don't quote)

fill

geom_density fill color

alpha

geom_density alpha color

summary_stats

add text with summary stats to plot (boolean)

text_xpos

x position of summary stat text (numeric)

text_ypos

y position of summary stat text (numeric)

text_sigfigs

number of significant figures to write summary statistic to (numeric)

...

other geom_density aesthetics (e.g. linetype = "dashed")

Value

gglot

Examples

ggdensity(mtcars, mpg, summary = TRUE)

selkamand/utilitybeltgg documentation built on July 14, 2022, 2:32 p.m.