linked_scatter_plot: linked_scatter_plot

View source: R/linked_scatter_plot.R

linked_scatter_plotR Documentation

linked_scatter_plot

Description

A scatterplot with links

Usage

linked_scatter_plot(
  x,
  y,
  links,
  groups = rep("1", length(x)),
  text = rep("", length(x)),
  title = "",
  xlab = "",
  xlim = range(x, na.rm = TRUE) * 1.1,
  ylim = range(y, na.rm = TRUE) * 1.1,
  ylab = "",
  colours = NULL
)

Arguments

x

x values

y

y values

links

HTML links for each point

groups

Groups to color the points by.

text

Hovertext for the points

title

Plot title

xlab, ylab

X/Y axis title

xlim, ylim

Range of X/Y axis

colours

Colours to use for the groups

Examples

linked_scatter_plot(
 1:10,
 1:10,
 rep("https://www.google.com", 10),
 groups = sample(letters[1:2], 10, replace=TRUE))

Alanocallaghan/plotlyutils documentation built on May 3, 2023, 8:34 p.m.