theme_ly: Modify Plot Theme

Description Usage Arguments Value Examples

View source: R/easy_plot_ly.R

Description

This function helps to edit plot aesthetics

Usage

1
theme_ly(xlab, ylab, zlab, title, ...)

Arguments

xlab

The x-axis label

ylab

The y-axis label

zlab

The z-axis label

title

The plot title

colorbar

Show colorbar

colorscale_title

The title for the colorscale

legend

Show legend

plot

The plot that you want to change the aesthetics of

Value

aesthetics adjustments for a plot

Examples

1
2
3
4
5
6
7
8
newPlot <- easy_plot_ly(x = iris$Sepal.Length, y = iris$Sepal.Width, z = iris$Petal.Length,
             color = iris$Species, type = 'scatter', data = iris)

newPlot2 <- add_reg_plane(x = iris$Sepal.Length, y = iris$Sepal.Width, z = iris$Petal.Length,
plot = newPlot)

theme_ly(xlab = 'Sepal Length', ylab = 'Sepal Width', zlab = 'Petal Length', title = 'Regression',
legend = F, plot = newPlot2, colorbar = FALSE)

shanealman/EZRplots documentation built on May 13, 2020, 3:29 a.m.