OneScatter: Generates a ggobject of one scater plot

View source: R/OneScatter.R

OneScatterR Documentation

Generates a ggobject of one scater plot

Description

Generates a ggobject of one scater plot for either plotting directy or plotting a panel via multiplot

Usage

OneScatter(ClsAndData, Xvar, Yvar, Clsvar = "Cls", zero.rm = TRUE, ...)

Arguments

ClsAndData

numerical matrix [1:n,1:d+1] with d features and one classification vector as a column of this matrix

Xvar

string for column name of first feauture

Yvar

string for column name of second feauture

Clsvar

otional, string for column name of classification, default "Cls"

zero.rm

TRUE: removes zeros

...

further parameters for Classplot

Value

ggobject defining a two-dimensional scatter plot

Author(s)

michael thrun

See Also

Classplot,

multiplot

Examples

## Not run: 
DataMZL_T1=ReadScatter(nameMZL_T1,path)
DataMZL_T2=ReadScatter(nameMZL_T2,path)

gg1=OneScatter(DataMZL_T1,"CD5","CD19",Size=1,main="")
gg2=OneScatter(DataMZL_T1,"CD10","CD19",Size=1,main="")
gg3=OneScatter(DataMZL_T1,"CD23","CD20",Size=1,main="")
gg4=OneScatter(DataMZL_T1,"FMC7","CD20",Size=1,main="")
gg5=OneScatter(DataMZL_T2,"Kappa","Lambda",Size=1,main="")
gg6=OneScatter(DataMZL_T1,"CD79b","IgM",Size=1,main="")
#panel visualization
dbt.Plot::multiplot(gg1,gg2,gg3,gg4,gg5,gg6,cols = 3)#+ggtitle("MZL 12920")

## End(Not run)

Mthrun/dbt.FlowCytometry documentation built on June 5, 2023, 10:30 a.m.