plot_scatter: Scatter plot with plotly

Description Usage Arguments Value

View source: R/plot_scatter.R

Description

Scatter plot with plotly

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
plot_scatter(
  data,
  x,
  y,
  group = NULL,
  text = NULL,
  hoverinfo = "x+y+text",
  linear = TRUE,
  colors = "Set1",
  one2one_line = FALSE
)

Arguments

data

Data frame.

x

Name of x variable.

y

Name of y variable.

group

Optional name for grouping variable.

text

Optional name for text variable. This will show in the hover text box.

hoverinfo

If text variable is specified, use "x+y+text" to show text. For more info, check plotly::schema()

linear

Whether a linear best fit line is drawn.

colors

RColorBrewer palette name.

one2one_line

Should the 1:1 line be drawn.

Value

A plotly object.


MohoWu/ricardor documentation built on March 6, 2021, 4:17 p.m.