ggla_plotly_settings: ggla_plotly_settings

Description Usage Arguments Value Examples

View source: R/ggla_plotly_settings.R

Description

AAdds default ggla layout, style and config to a plotly plot

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
ggla_plotly_settings(
  plot,
  gla_theme = "default",
  x_axis_title = FALSE,
  y_axis_title = FALSE,
  xgridlines = FALSE,
  legend = TRUE,
  base_size = 14,
  ...
)

Arguments

plot

A plotly plot, created either using plot_ly or ggplotly.

gla_theme

Either "default" or "inverse", Default: 'default'

x_axis_title

boolean, If TRUE an x-axis label/title can be added, Default: FALSE

y_axis_title

boolean, If TRUE a y-axis label/title can be added, Default: FALSE

xgridlines

boolean, If TRUE, theme will include gridlines on the x-axis, Default: FALSE

legend

boolean, If TRUE, theme will include a legend at the top left of the plot, Default: TRUE

base_size

base font size, Default: 14

...

Other parameters passed to plotly::layout

Value

A plotly plot

Examples

1
2
3
4
5
6
## Not run: 
if(interactive()){
 #EXAMPLE1
 }

## End(Not run)

Greater-London-Authority/gglaplot documentation built on Dec. 28, 2021, 8:27 p.m.