dot_plot: Dot plot representation of matrices

View source: R/Plotting_functions.R

dot_plotR Documentation

Dot plot representation of matrices

Description

Dot plot representation of matrices

Usage

dot_plot(
  Dot_Size,
  Dot_Color = NULL,
  title = "Dot Plot",
  size_range = c(0, 5.5),
  size_limits = range(Dot_Size),
  size_breaks = NULL,
  size_var = "size",
  color_var = "color",
  color_values = c("red", "purple", "blue", "black"),
  size_label_y = NULL,
  size_label_x = NULL,
  theme_name = "theme_bw"
)

Arguments

Dot_Size

a matrix of dot sizes

Dot_Color

a matrix of dot colors (optionnal)

title

plot title

size_range

range of dot sizes to display

size_limits

limits for dot size (as used in ggplot2::scale_radius())

size_breaks

breaks used for dot size scale

size_var

name of the variable corresponding to dot size

color_var

name of the variable corresponding to dot color

color_values

values parameter passed to scale_color_manual()

size_label_y

size of y-axis labels

size_label_x

size of x-axis labels

theme_name

name of the ggplot2 theme function to use ('theme_gray' by default)

Value

a plot


VoisinneG/InteRact documentation built on May 17, 2022, 11:40 p.m.