sp_transfer_one_column: Transfer one column of data.

View source: R/utilities.R

sp_transfer_one_columnR Documentation

Transfer one column of data.

Description

Transfer one column of data.

Usage

sp_transfer_one_column(data, variable, yaxis_scale_mode = NULL, y_add = 0)

Arguments

data

A data matrix

variable

One column name of data matrix

yaxis_scale_mode

Give the following scale_y_log10(), coord_trans(y="log10"), or other legal command for ggplot2 or simply log2 to set the scale way.

y_add

A number to add if log scale is used. Default 0 meaning the minimum non-zero value would be used.

Value

A data frame

Examples


data <- data.frame(A=letters[1:4], B=letters[1:4])
data
data = sp_transfer_variable(data,'A', "log2")

Tong-Chen/ImageGP documentation built on April 14, 2025, 12:54 p.m.