analyzePlot: Plot for data exploration/analysis

Description Usage Arguments Details Value Examples

View source: R/sampleView.R

Description

Create some specific plots for data exploration/analysis.

Usage

1
2
3
4
5
6
7
8
9
analyzePlot(
  nb,
  data.sample,
  selectedVar,
  type = "boxplot",
  hscale = 1.2,
  K.max = 20,
  fontsize = 11
)

Arguments

nb

notebook in which the analyze plot will be added.

data.sample

list containing features, profiles and clustering results.

selectedVar

character vector containing the selected variables names to analyze.

type

character vector specifying the analysis type. Must be 'boxplot', 'gapSE', 'histo', 'pcaCorr' or 'pcaVar'.

hscale

numeric value corresponding to the horizontal scale of graphic.

K.max

maximal number of clusters (K.Max=20 by default).

fontsize

size of font (fontsize=11 by default).

Details

analyzePlot creates specific plot for data exploration/analysis.

Value

None

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
dat <- rbind(matrix(rnorm(100, mean = 2, sd = 0.3), ncol = 2), 
             matrix(rnorm(100, mean = 4, sd = 0.3), ncol = 2), 
             matrix(rnorm(100, mean = 6, sd = 0.3), ncol = 2))
colnames(dat) <- c("x","y")
tf <- tempfile()
write.table(dat, tf, sep=",", dec=".")

x <- importSample(file.features=tf, dir.save=tempdir())

mainWindow <- tktoplevel()
tktitle(mainWindow) <- "Barplot clustering"  
mainWindow$env$nb <- tk2notebook(mainWindow, tabs = c())
tkpack(mainWindow$env$nb, fill="both", expand= TRUE)

analyzePlot(mainWindow$env$nb, x, selectedVar="x", type="boxplot")
 

RclusTool documentation built on Feb. 4, 2020, 5:08 p.m.