View source: R/aest_plot_percent.R
aest_plot_percent | R Documentation |
makes a time series plot where y variable is percent formatted
aest_plot_percent( df, x_var, y_var, filter_var, plot_this, geom, bcPalette = c("#1f4181", "#fabc29", "#000000", "#808080") )
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 |
This function is nearly identical with aest_plot_comma. The only difference is the formatting for the y axis and the tool tip.
a ggplot object
## Not run: if(interactive()){ #EXAMPLE1 } ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.