calcx: Calculate x position for correlation plot

Description Usage Arguments Value

Description

Calculate x position for correlation plot

Usage

1
calcx(cor, range = c(-1, 1), width = 180, pad = 0.1)

Arguments

cor

Numeric vector of correlation values.

range

Numeric vector of length 2 specifying maximum and minimum values of cor.

width

Plot width to scale correlation values to.

pad

Numeric value that is respectively, subtracted and added to values in range. Make it so that circles and correlation text values don't get cut off.

Value

Numeric vector giving x position for correlation plot in Drugs tab.


hms-dbmi/drugseqr documentation built on Aug. 8, 2020, 2:03 a.m.