aest_plot_percent: aest_plot_percent

View source: R/aest_plot_percent.R

aest_plot_percentR Documentation

aest_plot_percent

Description

makes a time series plot where y variable is percent formatted

Usage

aest_plot_percent(
  df,
  x_var,
  y_var,
  filter_var,
  plot_this,
  geom,
  bcPalette = c("#1f4181", "#fabc29", "#000000", "#808080")
)

Arguments

df

the dataframe that contains the data you want to plot

x_var

the variable that will go on the x-axis... likely time.

y_var

the thing you are plotting (could be a value, change...)

filter_var

a column in the dataframe that you are filtering on.

plot_this

a particular value of filter_var (the series you want to plot.)

geom

either column or line

bcPalette

colour palette for BC government

Details

This function is nearly identical with aest_plot_comma. The only difference is the formatting for the y axis and the tool tip.

Value

a ggplot object

Examples

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

## End(Not run)

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