scatter_plot: Create scatter plot with ggplot2

View source: R/plots.R

scatter_plotR Documentation

Create scatter plot with ggplot2

Description

Create scatter plot with ggplot2

Usage

scatter_plot(
  df,
  x,
  y,
  text = NA,
  group,
  size = 1.5,
  scale = NA,
  index = NA,
  key = NA,
  title = "",
  xlab = "",
  ylab = ""
)

Arguments

df

Dataframe, Dataframe to create plot with

x

String, Value to plot on X axis

y

String, Value to plot on Y axis

text

String, Hover info text

group

String, Value to color/group data

size

Numeric, size of dots (default 1.5)

scale

String, Should X-axis be scaled in log10

index

Vector, vector of items to select from dataframe

key

String, Value for point selection by plotly

title

String, Title for plot

xlab

String, Label for X axis

ylab

String, Label for Y axis

Value

gg, Plot object (ggplot2)


LUMC/DGE_analysis documentation built on Aug. 12, 2022, 11:04 p.m.