calcx: Calculate x position for correlation plot

calcxR Documentation

Calculate x position for correlation plot

Description

Calculate x position for correlation plot

Usage

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 Feb. 15, 2024, 10:38 p.m.