aest_area_plot: Area Plot

View source: R/aest_area_plot.R

aest_area_plotR Documentation

Area Plot

Description

makes either a stacked or filled (proportions) area plot

Usage

aest_area_plot(
  df,
  x_var,
  y_var,
  group_var,
  stack_or_fill = "stack",
  title = NULL,
  subtitle = NULL,
  caption = NULL,
  caption_size = 5
)

Arguments

df

a dataframe

x_var

The variable to plot on the x axis

y_var

The variable to plot on the y axis

group_var

The grouping variable

stack_or_fill

stack: original scale, fill: proportions, Default: 'stack'

title

optional title, Default: NULL

subtitle

optional subtitle, Default: NULL

caption

If not provided, the caption is variable name and original file name, Default: NULL

caption_size

font size for caption, Default: 5

Details

DETAILS

Value

OUTPUT_DESCRIPTION

See Also

label_number

Examples

## Not run: 
if(interactive()){
 #EXAMPLE1
 }

## End(Not run)

rpmartin/aest documentation built on Oct. 22, 2022, 6:33 p.m.