Show Sidebar Hide Sidebar

Font Styles in R

How to create font styles in R with Plotly.

New to Plotly?

Plotly's R library is free and open source!
Get started by downloading the client and reading the primer.
You can set up Plotly to work in online or offline mode.
We also have a quick-reference cheatsheet (new!) to help you get started!

Version Check

Version 4 of Plotly's R package is now available!
Check out this post for more information on breaking changes and new features available in this version.

## [1] ''

Global Font Properties


t <- list(
  family = "sans serif",
  size = 14,
  color = 'blue')

p <- plot_ly(x=c(1,2,3,4,5), y=c(1,2,3,2,1)) %>%
  layout(title="Font Styling",

# Create a shareable link to your chart
# Set up API credentials:
chart_link = api_create(p, filename="font-global")


See for more information and options!