c_layout: Layout

Description Usage Arguments Examples

View source: R/layout.R

Description

Adjust the layout of the graph.

Usage

1
c_layout(c, left = NULL, right = NULL, top = NULL, bottom = NULL)

Arguments

c

An object of class charter as returned by c_hart.

left, right, top, bottom

Values, in pixels, defining margin around chart.

Examples

1
2
3
4
5
6
c_hart(cars, caes(speed, dist)) %>% 
 c_line() %>% 
 c_layout(
   top = 20, right = 20, 
   left = 20, bottom = 20
 )

JohnCoene/charter documentation built on Feb. 20, 2022, 11:07 p.m.