Learn R Programming

easylabel (version 0.3.3)

arial: Change plotly font to Arial

Description

Change plotly font to Arial

Usage

arial(p, size = 14)

Value

A plotly object

Arguments

p

A plotly object

size

Font size

Examples

Run this code
library(plotly)
data(mtcars)

p <- plot_ly(mtcars, x = ~mpg, y = ~wt, color = ~cyl,
             type = 'scatter', mode = 'markers')
p %>% arial
p %>% arial(18)

Run the code above in your browser using DataLab