View source: R/linked_scatter_plot.R
linked_scatter_plot | R Documentation |
A scatterplot with links
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
)
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 |
linked_scatter_plot(
1:10,
1:10,
rep("https://www.google.com", 10),
groups = sample(letters[1:2], 10, replace=TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.