Learn R Programming

plotcli (version 0.2.0)

create_scales: Create Scale Object from ggplot_build data

Description

Create Scale Object from ggplot_build data

Usage

create_scales(built, plot_width, plot_height, has_border = FALSE)

Value

List with x_scale and y_scale functions

Arguments

built

Result from ggplot_build()

plot_width

Canvas pixel width

plot_height

Canvas pixel height

has_border

Whether a border will be drawn (adds padding)