ggplot_set_scale_y_con: set format of scale_y_continuous

View source: R/ggplot_set_scale.R

ggplot_set_scale_y_conR Documentation

set format of scale_y_continuous

Description

Created to be used in automated creation of graphs when the format of the y-axis (horizontal axis when used in bar graph after coord_flip()) needs to be set based on a variable (e.g. graphing concepts such as occupancy and revpar in the same process.

Usage

ggplot_set_scale_y_con(plot1, set_axis_type)

Arguments

set_axis_type

either "dollar" or "percent"


aranryan/arlodr documentation built on Jan. 21, 2025, 2:11 p.m.