Set the output size

plot_size(width, height)

Arguments

width, height

Device size in pixels.

Value

A ggnext_size object to add to a plot with +.

Examples

ggnext(cars, aes(speed, dist)) + geom_point() + plot_size(900, 600)
#> <ggnext plot>
#>   data:  50 x 2
#>   aes:   x = speed, y = dist
#>   layers: 1 
#>   coord: cartesian
#>   mode:  static