get values/slot in an object of class "mgsa". The "mgsa" consists of two S4 class objects,
moa-class and moa.sup-class. This function could extract
values in these two components directly.
Usage
getmgsa(mgsa, value)
Arguments
mgsa
An object of class mgsa-class.
value
The name of the value want to extract from "mgsa". See detail for options.
Details
if value in c("call", "moa", "sup"), the function equal function slot.
if value in c("eig", "tau", "partial.eig", "eig.vec", "loading",
"fac.scr", "partial.fs", "ctr.obs", "ctr.var", "ctr.tab", "RV"), the function extact
corresponding value from moa-class.
if value in c("data", "coord.sep", "coord.comb", "score",
"score.data", "score.pc", "score.sep", "p.val"), the function extract value from
moa.sup-class.
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(mogsa)
> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/mogsa/getmgsa.Rd_%03d_medium.png", width=480, height=480)
> ### Name: getmgsa
> ### Title: get values in an object of class "mgsa".
> ### Aliases: getmgsa
>
> ### ** Examples
>
> # library(mogsa)
> # loading gene expression data and supplementary data
> data(NCI60_4array_supdata)
> data(NCI60_4arrays)
> mgsa <- mogsa(x = NCI60_4arrays, sup=NCI60_4array_supdata, nf=9,
+ proc.row = "center_ssq1", w.data = "inertia", statis = TRUE)
> part.eig <- getmgsa(mgsa, "partial.eig")
> barplot(as.matrix(part.eig))
>
>
>
>
>
> dev.off()
null device
1
>