Learn R Programming

kml3d (version 0.7)

windowsCut: ~ Function: windowsCut ~

Description

windowsCut prepare an object ParWindows according to its arguments.

Usage

windowsCut(x, addLegend = TRUE,closeScreen=TRUE)

Arguments

x
[numeric] or [couple(numeric)]: x is used to calculate the fields nbCol and nbRow of the object ParWindows. If x is a couple, then x[1] is
addLegend
[logical]: If addLegendis true, an extra space is reserved on the top of the screen to print the legend.
closeScreen
[logical]: Some function (like choice) need to add details on a graph. This option let them call a plot function that will not call a close.screen on exit, so the gra

Value

  • An object of class ParWindows.

Author(s)

Christophe Genolini INSERM U669 / PSIGIAM: Paris Sud Innovation Group in Adolescent Mental Health Modal'X / Universite Paris Ouest-Nanterre- La Defense Contact author : genolini@u-paris10.fr

Details

If x is a number of variable, the column and row number are estimate according to the formula nbCol <- ceiling(sqrt(x)) and nbRow <- ceiling(x/nbCol).

References

Article "KmL: K-means for Longitudinal Data", in Computational Statistics, Volume 25, Issue 2 (2010), Page 317. Web site: http://christophe.genolini.free.fr/kml

Examples

Run this code
### Simple cut
  windowsCut(5)

  ### With no space for legend
  windowsCut(5,FALSE)

Run the code above in your browser using DataLab