Innovation Team Plotly Theme
plotly_innteam.Rd
Innovation Team Plotly Theme
Usage
plotly_innteam(
plot,
...,
plot_title = "Insert Plot's Title",
plot_subtitle = "",
plot_caption = "",
plot_xaxis = "",
plot_yaxis = ""
)
Arguments
- plot
plotly plot object
- ...
inherit arguments coming from the plotly's layout function
- plot_title
Main title
- plot_subtitle
Subtitle in default position
- plot_caption
Caption in default position
- plot_xaxis
x-axis text
- plot_yaxis
y-axis text
Examples
library(plotly)
#> Loading required package: ggplot2
#>
#> Attaching package: ‘plotly’
#> The following object is masked from ‘package:ggplot2’:
#>
#> last_plot
#> The following object is masked from ‘package:stats’:
#>
#> filter
#> The following object is masked from ‘package:graphics’:
#>
#> layout
df = data.table(State = state.name,
LifeExp = state.x77[,4],
Population = state.x77[,1])
df |>
plot_ly(x = ~LifeExp, y = ~Population, type = "scatter", width = 900, height = 500) |>
plotly_innteam(plot_title = 'This is my title',
plot_subtitle = 'Here we will see a subtitle',
plot_caption = 'Source: innteamUtils package',
plot_xaxis = 'LifeExp',
plot_yaxis = 'Population')
#> Warning: Specifying width/height in layout() is now deprecated.
#> Please specify in ggplotly() or plot_ly()