saveFigure: This function save the figure in the current plot.

Description Usage Arguments Value Author(s) Examples

View source: R/Valiation.R

Description

This function save the figure in the current plot.

Usage

1
2
saveFigure(foldername = NULL, filename = "saveFig", image_width = 10,
  image_height = 10, image_res = 300)

Arguments

foldername

Character values. It specifies the folder name which will be created in the present working path.

filename

Character values. It specifies the saved file name.

image_width

the figure width

image_height

the figure height

image_res

the figure resolution

Value

A * .png file in the specified folder.

Author(s)

Xu,Taosheng taosheng.x@gmail.com,Thuc Le Thuc.Le@unisa.edu.au

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(GeneExp)
data(miRNAExp)
data(time)
data(status)
GBM=list(GeneExp=GeneExp,miRNAExp=miRNAExp)
result=ExecuteSNF(GBM, clusterNum=3, K=20, alpha=0.5, t=20)
group=result$group
distanceMatrix=result$distanceMatrix
p_value=survAnalysis(mainTitle="GBM",time,status,group,
      distanceMatrix=distanceMatrix,similarity=TRUE)
saveFigure(foldername="GBM",filename="GBM",image_width=10,image_height=10,image_res=300)

xtsvm/CancerSubtypes documentation built on May 4, 2019, 1:26 p.m.