create_ipath_data: Format input data to plot with ipath

Description Usage Arguments Value Author(s)

View source: R/format_data.R

Description

Format input data to plot with ipath

Usage

1
2
3
4
create_ipath_data(data, id_column, color_column = NA,
  width_column = NA, opacity_column = NA, min_path_width = 3,
  max_path_width = 10, color_type = "discrete", color_cutoff = 0,
  pallete = "RdBu")

Arguments

data

input data.frame

id_column

name of the column containing ids to plot on the ipath map. Must be one of the supported data types and in the correct format (see: https://pathways.embl.de/help.cgi)

color_column

name of the column containing values to vary colors in the ipath plot

width_column

name of the column containing values to vary width in the ipath plot

opacity_column

name of the column containing values to vary opacity in the ipath plot

min_path_width

minimum width of paths with a match

max_path_width

maximum width of paths with a match. Default width for when no wwidth_column is provided.

color_type

type of color palette to map values to (discrete or continous)

color_cutoff

value which seperates values into higher or lower for discrete color mapping

palette

RColorBrewer pallete name

Value

data.frame formatted for sending to ipath

Author(s)

Beth Signal


betsig/ipath documentation built on March 12, 2021, 12:06 a.m.