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!
##  '4.9.1'
Figure Labels for 2D Charts
library(plotly) f <- list( family = "Courier New, monospace", size = 18, color = "#7f7f7f" ) x <- list( title = "x Axis", titlefont = f ) y <- list( title = "y Axis", titlefont = f ) p <- plot_ly(x = ~rnorm(10), y = ~rnorm(10), mode = "markers") %>% layout(xaxis = x, yaxis = y) p
Figure Labels for 3D Charts
library(plotly) set.seed(123) n <- 100 theta <- runif(n, 0, 2*pi) u <- runif(n, -1, 1) p <- plot_ly(x = ~sqrt(1 - u^2) * cos(theta), y = ~sqrt(1 - u^2) * sin(theta), z = ~u) %>% layout( title = "Layout options in a 3d scatter plot", scene = list( xaxis = list(title = "Cos"), yaxis = list(title = "Sin"), zaxis = list(title = "Z") )) p