Package 'RcmdrPlugin.KMggplot2'

Title: R Commander Plug-in for Data Visualization with 'ggplot2'
Description: A GUI front-end for 'ggplot2' supports Kaplan-Meier plot, histogram, Q-Q plot, box plot, errorbar plot, scatter plot, line chart, pie chart, bar chart, contour plot, and distribution plot.
Authors: Triad sou. [aut, cre], Kengo Nagashima [aut]
Maintainer: Triad sou. <[email protected]>
License: GPL-2
Version: 0.2-6
Built: 2025-01-27 04:27:07 UTC
Source: https://github.com/cran/RcmdrPlugin.KMggplot2

Help Index


R Commander Plug-in for Data Visualization with 'ggplot2'

Description

A GUI front-end for 'ggplot2' supports Kaplan-Meier plot, histogram, Q-Q plot, box plot, errorbar plot, scatter plot, line chart, pie chart, bar chart, contour plot, and distribution plot.

See Also

Rcmdr, ggplot2, survfit, RColorBrewer ggthemes scales


The back Method for gparts_base Class

Description

back method places GUI grids for R-Commander windows.

Usage

## S4 method for signature 'gparts_base'
back(perline = 3)

Arguments

perline

Integer; controls the number of per-line to GUI grids.

See Also

Other guiparts: checkboxes-class, front,checkboxes-method, front,radioboxes-method, front,textfield-method, front,textfields-method, front,toolbox-method, front,variableboxes-method, gparts_base-class, radioboxes-class, textfield-class, textfields-class, toolbox-class, variableboxes-class


Check Boxes Subclass

Description

checkboxes class is a subclass for GUI check box frame.

Details

This class is a subclass which make GUI check box frame.

Fields

frame:

tkwin class object; parent of widget window.

length:

Integer; number of grids.

back_list:

List of tkwin class object; list of grids.

value:

List of tclVar class object; values of the check box frame.

cbcheckboxes:

tkwin class object; the check box frame.

Contains

gparts_base

Methods

back(perline = 3):

back method for gparts_base class.

front(top, initValues, labels, title = "", right.buttons = FALSE):

front method for checkboxes subclass.

See Also

Other guiparts: back,gparts_base-method, front,checkboxes-method, front,radioboxes-method, front,textfield-method, front,textfields-method, front,toolbox-method, front,variableboxes-method, gparts_base-class, radioboxes-class, textfield-class, textfields-class, toolbox-class, variableboxes-class


A Dummy Data for Contour Plots

Description

A Dummy Data for Contour Plots

Format

A data frame with 10000 observations on the following 3 variables.

x

a x-axis variable

y

a y-axis variable

z

density

See Also

contour-class

Examples

# This data is generated by the code below:
# set.seed(5435678)
# dataContour <- data.frame(
#   x = (zx <- (rep(1:100, 100) - 5) / 2),
#   y = (zy <- (rep(1:100, each=100) - 5) / 2),
#   z = (z  <- zx*zy)
# )
# save(dataContour, file = "dataContour.RData")
# try(data(dataContour, package = "RcmdrPlugin.KMggplot2"))

A Dummy Data for Survival Analysis

Description

A Dummy Data for Survival Analysis

Format

A data frame with 200 observations on the following 8 variables.

time

time from entry (months)

age

age

height

height

weight

weight

event

event variable (0: censor, 1: event)

trt

treatment group (has three groups "Group-A", "Group-B", and "Group-C")

marker

a biomarker level (has two groups "High", and "Low")

sex

sex

See Also

km-class

Examples

# This data is generated by the code below:
# set.seed(5435678)
# age <- round(rnorm(200, 65, 10))
# height <- rep(c(170, 160), each = 50) + rnorm(200, 0, 6)
# weight <- rep(c(50, 45.5), each = 50) + 0.91 * (height - 152.4) + rnorm(200, 0, 7)
# event <- sample(c(0, 1), 200, rep = TRUE, prob = c(0.1, 0.9))
# trt <- factor(sample(c("Group-A", "Group-B", "Group-C"), 200, rep = TRUE))
# marker <- factor(sample(c("High", "Low"), 200, rep = TRUE, prob = c(0.3, 0.7)))
# sex <- factor(rep(c("M", "F"), each = 50))
# mu <- 10 + 0.1 * (age - 65) + as.numeric(sex) + as.numeric(marker) + 5 * (as.numeric(trt) - 2)
# time <- rgamma(200, mu, 1)
# time[time >= 20] <- 20
# event[time == 20] <- 0
# dataKm <- data.frame(time, age, height, weight, event, trt, marker, sex)
# save(dataKm, file = "dataKm.RData")
# try(data(dataKm, package = "RcmdrPlugin.KMggplot2"))

A Dummy Data for Line Charts

Description

A Dummy Data for Line Charts

Format

A data frame with 144 observations on the following 5 variables.

date

date

group

a measurement group (has three groups "T", "H", and "L")

marker

a biomarker level (has two groups "High", and "Low")

sex

sex

y

a measurement variable

See Also

line-class

Examples

# This data is generated by the code below:
# set.seed(5435678)
# date <- rep(seq(Sys.Date(), len = 12, by = "1 month"), each = 12)
# group <- rep(c("T", "H", "L"), 12, each = 4)
# marker <- factor(rep(c("High", "Low"), 36, each = 2))
# sex <- factor(rep(c("M", "F"), 72))
# mu <- rep(c(200, 50, 150), 12, each = 4) + 10 * as.numeric(sex) + 30 * as.numeric(marker)
# y <- rnorm(144, mu, 25)
# dataLine <- data.frame(date, group, marker, sex, y)
# save(dataLine, file = "dataLine.RData")
# try(data(dataLine, package = "RcmdrPlugin.KMggplot2"))

Factorize Subclass

Description

factorize class is a subclass for factorizing numeric variables.

Details

This class is a subclass which show dialog boxes of a factorizer for graphics editing.

Fields

top:

tkwin class object; parent of widget window.

alternateFrame:

tkwin class object; a special frame for some GUI parts.

vbbox1:

variableboxes class object; the frame to select variables.

rbbox1:

radioboxes class object; the frame to set options.

Contains

NULL

Methods

plotWindow():

Create the window that make plots.

savePlot(plot):

Save the plot.

registRmlist(object):

Register deletable temporary objects.

removeRmlist():

Remove registered temporary objects.

setFront():

Set front parts of frames.

setBack():

Set back parts of frames.

getWindowTitle():

Get the title of the window.

getHelp():

Get the title of the help document.

getParms():

Get graphics settings parameters.

checkTheme(index):

Check themes.

checkVariable(var):

Check a variable length.

checkError(parms):

Check errors.

setDataframe(parms):

Set data frames.

getGgplot(parms):

Get ggplot.

getGeom(parms):

Get geom.

getScale(parms):

Get scale.

getCoord(parms):

Get coord.

getFacet(parms):

Get facet.

getXlab(parms):

Get xlab.

getYlab(parms):

Get ylab.

getZlab(parms):

Get zlab.

getMain(parms):

Get the main label.

getTheme(parms):

Get theme.

getOpts(parms):

Get other opts.

getPlot(parms):

Get the plot object.

getMessage():

Get the plot error message.

commandDoIt(command):

An wrapper function for command execution.

See Also

Other plot: checkError,plot_base-method, checkTheme,plot_base-method, checkVariable,plot_base-method, commandDoIt,plot_base-method, gbox-class, gcont-class, gdiscbar-class, gdist-class, getCoord,plot_base-method, getFacet,plot_base-method, getGeom,plot_base-method, getGgplot,plot_base-method, getHelp,plot_base-method, getMain,plot_base-method, getMessage,plot_base-method, getOpts,plot_base-method, getParms,plot_base-method, getPlot,plot_base-method, getScale,plot_base-method, getTheme,plot_base-method, getWindowTitle,plot_base-method, getXlab,plot_base-method, getYlab,plot_base-method, getZlab,plot_base-method, ghist-class, gkm-class, gline-class, gpie-class, gqq-class, gscat-class, gscatmat-class, plotWindow,plot_base-method, plot_base-class, registRmlist,plot_base-method, removeRmlist,plot_base-method, savePlot,plot_base-method, setBack,plot_base-method, setDataframe,plot_base-method, setFront,plot_base-method


The front Method for checkboxes Subclass

Description

The front Method for checkboxes Subclass

Usage

## S4 method for signature 'checkboxes'
front(top, initValues, labels, title = "", right.buttons = FALSE)

Arguments

top

tkwin class object; top of widget window.

initValues

List of integer; initialization values of check boxes.

labels

List of character; values of check boxes labels.

title

Character; the title of the check box frame.

right.buttons

Boolean; whether check boxes are right aligned or not.

See Also

Other guiparts: back,gparts_base-method, checkboxes-class, front,radioboxes-method, front,textfield-method, front,textfields-method, front,toolbox-method, front,variableboxes-method, gparts_base-class, radioboxes-class, textfield-class, textfields-class, toolbox-class, variableboxes-class


The front Method for radioboxes Subclass

Description

The front Method for radioboxes Subclass

Usage

## S4 method for signature 'radioboxes'
front(top, labels, title = "", initValue = 1, right.buttons = FALSE)

Arguments

top

tkwin class object; top of widget window.

labels

List of character; values of radio boxes labels.

title

Character; the title of the radio box frame.

initValue

Integer; the initialization value of the radio box frame.

right.buttons

Boolean; whether radio boxes are right aligned or not.

See Also

Other guiparts: back,gparts_base-method, checkboxes-class, front,checkboxes-method, front,textfield-method, front,textfields-method, front,toolbox-method, front,variableboxes-method, gparts_base-class, radioboxes-class, textfield-class, textfields-class, toolbox-class, variableboxes-class


The front Method for textfield Subclass

Description

The front Method for textfield Subclass

Usage

## S4 method for signature 'textfield'
front(top, initialValue, boxwidth, title)

Arguments

top

tkwin class object; top of widget window.

initialValue

Character; initialization values of the text field frame.

boxwidth

Integer; the size of the text field frame.

title

Character; the title of the text field frame.

See Also

Other guiparts: back,gparts_base-method, checkboxes-class, front,checkboxes-method, front,radioboxes-method, front,textfields-method, front,toolbox-method, front,variableboxes-method, gparts_base-class, radioboxes-class, textfield-class, textfields-class, toolbox-class, variableboxes-class


The front Method for textfields Subclass

Description

The front Method for textfields Subclass

Usage

## S4 method for signature 'textfields'
front(top, initValues, titles, boxwidth = "20")

Arguments

top

tkwin class object; top of widget window.

initValues

List of character; initialization values of text fields.

titles

List of character; titles of text fields.

boxwidth

Character; size of text fields.

See Also

Other guiparts: back,gparts_base-method, checkboxes-class, front,checkboxes-method, front,radioboxes-method, front,textfield-method, front,toolbox-method, front,variableboxes-method, gparts_base-class, radioboxes-class, textfield-class, textfields-class, toolbox-class, variableboxes-class


The front Method for toolbox Subclass

Description

The front Method for toolbox Subclass

Usage

## S4 method for signature 'toolbox'
front(top, 
  showcolourbox = TRUE, 
  fontSize = unlist(options("kmg2FontSize")), 
  fontSize = unlist(options("kmg2FontSize")), 
  fontFamily = unlist(options("kmg2FontFamily")), 
  colourSet = unlist(options("kmg2ColourSet")), 
  saveGraph = unlist(options("kmg2SaveGraph")), 
  themeBase = unlist(options("kmg2Theme"))
)

Arguments

top

tkwin class object; top of widget window.

showcolourbox

Boolean; whether the colour set frame is shown or not.

fontSize

Character; the initialization value of the font size.

fontFamily

Numeric; the initialization value of the font family.

colourSet

Numeric; the initialization value of the colour set.

saveGraph

Numeric; the initialization value of the save graph option.

themeBase

Numeric; the initialization value of the theme.

See Also

Other guiparts: back,gparts_base-method, checkboxes-class, front,checkboxes-method, front,radioboxes-method, front,textfield-method, front,textfields-method, front,variableboxes-method, gparts_base-class, radioboxes-class, textfield-class, textfields-class, toolbox-class, variableboxes-class


The front Method for variableboxes Subclass

Description

The front Method for variableboxes Subclass

Usage

## S4 method for signature 'variableboxes'
front(top, types, titles, modes = "default")

Arguments

top

tkwin class object; top of widget window.

types

List of character; types of variableLists.

titles

List of character; titles of variable box frame.

modes

List of character; select modes.

See Also

Other guiparts: back,gparts_base-method, checkboxes-class, front,checkboxes-method, front,radioboxes-method, front,textfield-method, front,textfields-method, front,toolbox-method, gparts_base-class, radioboxes-class, textfield-class, textfields-class, toolbox-class, variableboxes-class


Box Plot Subclass

Description

gbox class is a subclass for box plots.

Details

This class is a subclass which show dialog boxes of box plots for graphics editing.

Fields

top:

tkwin class object; parent of widget window.

alternateFrame:

tkwin class object; a special frame for some GUI parts.

vbbox1:

variableboxes class object; the frame to select variables.

vbbox2:

variableboxes class object; the frame to select facet variables.

lbbox1:

textfields class object; the frame to set axis labels and the main title.

rbbox1:

radioboxes class object; the frame to set the plot type.

cbbox1:

checkboxes class object; the frame to set options.

tbbox1:

toolbox class object; the frame to set the font, the colour set, other option, and the theme.

Contains

NULL

Methods

plotWindow():

Create the window that make plots.

savePlot(plot):

Save the plot.

registRmlist(object):

Register deletable temporary objects.

removeRmlist():

Remove registered temporary objects.

setFront():

Set front parts of frames.

setBack():

Set back parts of frames.

getWindowTitle():

Get the title of the window.

getHelp():

Get the title of the help document.

getParms():

Get graphics settings parameters.

checkTheme(index):

Check themes.

checkVariable(var):

Check a variable length.

checkError(parms):

Check errors.

setDataframe(parms):

Set data frames.

getGgplot(parms):

Get ggplot.

getGeom(parms):

Get geom.

getScale(parms):

Get scale.

getCoord(parms):

Get coord.

getFacet(parms):

Get facet.

getXlab(parms):

Get xlab.

getYlab(parms):

Get ylab.

getZlab(parms):

Get zlab.

getMain(parms):

Get the main label.

getTheme(parms):

Get theme.

getOpts(parms):

Get other opts.

getPlot(parms):

Get the plot object.

getMessage():

Get the plot error message.

commandDoIt(command):

An wrapper function for command execution.

See Also

Other plot: checkError,plot_base-method, checkTheme,plot_base-method, checkVariable,plot_base-method, commandDoIt,plot_base-method, factorize-class, gcont-class, gdiscbar-class, gdist-class, getCoord,plot_base-method, getFacet,plot_base-method, getGeom,plot_base-method, getGgplot,plot_base-method, getHelp,plot_base-method, getMain,plot_base-method, getMessage,plot_base-method, getOpts,plot_base-method, getParms,plot_base-method, getPlot,plot_base-method, getScale,plot_base-method, getTheme,plot_base-method, getWindowTitle,plot_base-method, getXlab,plot_base-method, getYlab,plot_base-method, getZlab,plot_base-method, ghist-class, gkm-class, gline-class, gpie-class, gqq-class, gscat-class, gscatmat-class, plotWindow,plot_base-method, plot_base-class, registRmlist,plot_base-method, removeRmlist,plot_base-method, savePlot,plot_base-method, setBack,plot_base-method, setDataframe,plot_base-method, setFront,plot_base-method


Contour Plot Subclass

Description

gcont class is a subclass for contour plots.

Details

This class is a subclass which show dialog boxes of contour plots for graphics editing.

Fields

top:

tkwin class object; parent of widget window.

alternateFrame:

tkwin class object; a special frame for some GUI parts.

vbbox1:

variableboxes class object; the frame to select variables.

vbbox2:

variableboxes class object; the frame to select facet variables.

lbbox1:

textfields class object; the frame to set axis labels, the legend label, and the main title.

rbbox1:

radioboxes class object; the frame to set the decoration type.

tbbox1:

toolbox class object; the frame to set the font, the colour set, other option, and the theme.

Contains

NULL

Methods

plotWindow():

Create the window that make plots.

savePlot(plot):

Save the plot.

registRmlist(object):

Register deletable temporary objects.

removeRmlist():

Remove registered temporary objects.

setFront():

Set front parts of frames.

setBack():

Set back parts of frames.

getWindowTitle():

Get the title of the window.

getHelp():

Get the title of the help document.

getParms():

Get graphics settings parameters.

checkTheme(index):

Check themes.

checkVariable(var):

Check a variable length.

checkError(parms):

Check errors.

setDataframe(parms):

Set data frames.

getGgplot(parms):

Get ggplot.

getGeom(parms):

Get geom.

getScale(parms):

Get scale.

getCoord(parms):

Get coord.

getFacet(parms):

Get facet.

getXlab(parms):

Get xlab.

getYlab(parms):

Get ylab.

getZlab(parms):

Get zlab.

getMain(parms):

Get the main label.

getTheme(parms):

Get theme.

getOpts(parms):

Get other opts.

getPlot(parms):

Get the plot object.

getMessage():

Get the plot error message.

commandDoIt(command):

An wrapper function for command execution.

See Also

Other plot: checkError,plot_base-method, checkTheme,plot_base-method, checkVariable,plot_base-method, commandDoIt,plot_base-method, factorize-class, gbox-class, gdiscbar-class, gdist-class, getCoord,plot_base-method, getFacet,plot_base-method, getGeom,plot_base-method, getGgplot,plot_base-method, getHelp,plot_base-method, getMain,plot_base-method, getMessage,plot_base-method, getOpts,plot_base-method, getParms,plot_base-method, getPlot,plot_base-method, getScale,plot_base-method, getTheme,plot_base-method, getWindowTitle,plot_base-method, getXlab,plot_base-method, getYlab,plot_base-method, getZlab,plot_base-method, ghist-class, gkm-class, gline-class, gpie-class, gqq-class, gscat-class, gscatmat-class, plotWindow,plot_base-method, plot_base-class, registRmlist,plot_base-method, removeRmlist,plot_base-method, savePlot,plot_base-method, setBack,plot_base-method, setDataframe,plot_base-method, setFront,plot_base-method


Discrete Bar Charts Subclass

Description

gdiscbar class is a subclass for discrete bar charts.

Details

This class is a subclass which show dialog boxes of discrete bar charts for graphics editing.

Fields

top:

tkwin class object; parent of widget window.

alternateFrame:

tkwin class object; a special frame for some GUI parts.

vbbox1:

variableboxes class object; the frame to select variables.

vbbox2:

variableboxes class object; the frame to select facet variables.

lbbox1:

textfields class object; the frame to set axis labels and the main title.

rbbox1:

radioboxes class object; the frame to set the axis scaling.

tbbox1:

toolbox class object; the frame to set the font, the colour set, other option, and the theme.

Contains

NULL

Methods

plotWindow():

Create the window that make plots.

savePlot(plot):

Save the plot.

registRmlist(object):

Register deletable temporary objects.

removeRmlist():

Remove registered temporary objects.

setFront():

Set front parts of frames.

setBack():

Set back parts of frames.

getWindowTitle():

Get the title of the window.

getHelp():

Get the title of the help document.

getParms():

Get graphics settings parameters.

checkTheme(index):

Check themes.

checkVariable(var):

Check a variable length.

checkError(parms):

Check errors.

setDataframe(parms):

Set data frames.

getGgplot(parms):

Get ggplot.

getGeom(parms):

Get geom.

getScale(parms):

Get scale.

getCoord(parms):

Get coord.

getFacet(parms):

Get facet.

getXlab(parms):

Get xlab.

getYlab(parms):

Get ylab.

getZlab(parms):

Get zlab.

getMain(parms):

Get the main label.

getTheme(parms):

Get theme.

getOpts(parms):

Get other opts.

getPlot(parms):

Get the plot object.

getMessage():

Get the plot error message.

commandDoIt(command):

An wrapper function for command execution.

See Also

Other plot: checkError,plot_base-method, checkTheme,plot_base-method, checkVariable,plot_base-method, commandDoIt,plot_base-method, factorize-class, gbox-class, gcont-class, gdist-class, getCoord,plot_base-method, getFacet,plot_base-method, getGeom,plot_base-method, getGgplot,plot_base-method, getHelp,plot_base-method, getMain,plot_base-method, getMessage,plot_base-method, getOpts,plot_base-method, getParms,plot_base-method, getPlot,plot_base-method, getScale,plot_base-method, getTheme,plot_base-method, getWindowTitle,plot_base-method, getXlab,plot_base-method, getYlab,plot_base-method, getZlab,plot_base-method, ghist-class, gkm-class, gline-class, gpie-class, gqq-class, gscat-class, gscatmat-class, plotWindow,plot_base-method, plot_base-class, registRmlist,plot_base-method, removeRmlist,plot_base-method, savePlot,plot_base-method, setBack,plot_base-method, setDataframe,plot_base-method, setFront,plot_base-method


Distribution Plot Subclass

Description

gdist class is a subclass for distribution plots.

Details

This class is a subclass which show dialog boxes of distribution plots for graphics editing.

Fields

top:

tkwin class object; parent of widget window.

alternateFrame:

tkwin class object; a special frame for some GUI parts.

lbbox1:

textfields class object; the frame to set distribution parameters.

lbbox2:

textfields class object; the frame to set axis labels, the legend label, and the main title.

rbbox1:

radioboxes class object; the frame to set the function type.

tbbox1:

toolbox class object; the frame to set the font, the colour set, other option, and the theme.

windowTitle:

Character; the window title.

distType:

Character; the distribution type ("discrete" or "continuous").

distName:

Character; the distribution name.

parmNames:

List of Characters; names of distribution parameters.

parmInits:

List of Characters; initial values of distribution parameters.

Contains

NULL

Methods

plotWindow():

Create the window that make plots.

savePlot(plot):

Save the plot.

registRmlist(object):

Register deletable temporary objects.

removeRmlist():

Remove registered temporary objects.

setFront():

Set front parts of frames.

setBack():

Set back parts of frames.

getWindowTitle():

Get the title of the window.

getHelp():

Get the title of the help document.

getParms():

Get graphics settings parameters.

checkTheme(index):

Check themes.

checkVariable(var):

Check a variable length.

checkError(parms):

Check errors.

setDataframe(parms):

Set data frames.

getGgplot(parms):

Get ggplot.

getGeom(parms):

Get geom.

getScale(parms):

Get scale.

getCoord(parms):

Get coord.

getFacet(parms):

Get facet.

getXlab(parms):

Get xlab.

getYlab(parms):

Get ylab.

getZlab(parms):

Get zlab.

getMain(parms):

Get the main label.

getTheme(parms):

Get theme.

getOpts(parms):

Get other opts.

getPlot(parms):

Get the plot object.

getMessage():

Get the plot error message.

commandDoIt(command):

An wrapper function for command execution.

See Also

Other plot: checkError,plot_base-method, checkTheme,plot_base-method, checkVariable,plot_base-method, commandDoIt,plot_base-method, factorize-class, gbox-class, gcont-class, gdiscbar-class, getCoord,plot_base-method, getFacet,plot_base-method, getGeom,plot_base-method, getGgplot,plot_base-method, getHelp,plot_base-method, getMain,plot_base-method, getMessage,plot_base-method, getOpts,plot_base-method, getParms,plot_base-method, getPlot,plot_base-method, getScale,plot_base-method, getTheme,plot_base-method, getWindowTitle,plot_base-method, getXlab,plot_base-method, getYlab,plot_base-method, getZlab,plot_base-method, ghist-class, gkm-class, gline-class, gpie-class, gqq-class, gscat-class, gscatmat-class, plotWindow,plot_base-method, plot_base-class, registRmlist,plot_base-method, removeRmlist,plot_base-method, savePlot,plot_base-method, setBack,plot_base-method, setDataframe,plot_base-method, setFront,plot_base-method


Step ribbon plots.

Description

geom_stepribbon is an extension of the geom_ribbon, and is optimized for Kaplan-Meier plots with pointwise confidence intervals or a confidence band.

Usage

geom_stepribbon(mapping = NULL, data = NULL, stat = "identity",
  position = "identity", na.rm = FALSE, show.legend = NA,
  inherit.aes = TRUE, kmplot = FALSE, ...)

Arguments

mapping

Set of aesthetic mappings created by aes() or aes_(). If specified and inherit.aes = TRUE (the default), it is combined with the default mapping at the top level of the plot. You must supply mapping if there is no plot mapping.

data

The data to be displayed in this layer. There are three options:

If NULL, the default, the data is inherited from the plot data as specified in the call to ggplot().

A data.frame, or other object, will override the plot data. All objects will be fortified to produce a data frame. See fortify() for which variables will be created.

A function will be called with a single argument, the plot data. The return value must be a data.frame, and will be used as the layer data. A function can be created from a formula (e.g. ~ head(.x, 10)).

stat

The statistical transformation to use on the data for this layer, as a string.

position

Position adjustment, either as a string, or the result of a call to a position adjustment function.

na.rm

If FALSE, the default, missing values are removed with a warning. If TRUE, missing values are silently removed.

show.legend

logical. Should this layer be included in the legends? NA, the default, includes if any aesthetics are mapped. FALSE never includes, and TRUE always includes. It can also be a named logical vector to finely select the aesthetics to display.

inherit.aes

If FALSE, overrides the default aesthetics, rather than combining with them. This is most useful for helper functions that define both data and aesthetics and shouldn't inherit behaviour from the default plot specification, e.g. borders().

kmplot

If TRUE, missing values are replaced by the previous values. This option is needed to make Kaplan-Meier plots if the last observation has event, in which case the upper and lower values of the last observation are missing. This processing is optimized for results from the survfit function.

...

Other arguments passed on to layer(). These are often aesthetics, used to set an aesthetic to a fixed value, like colour = "red" or size = 3. They may also be parameters to the paired geom/stat.

Aesthetics

@section Aesthetics: geom_ribbon()understands the following aesthetics (required aesthetics are in bold):

Learn more about setting these aesthetics in vignette("ggplot2-specs").

See Also

geom_ribbon geom_stepribbon inherits from geom_ribbon.

Examples

huron <- data.frame(year = 1875:1972, level = as.vector(LakeHuron))
h <- ggplot(huron, aes(year))
h + geom_stepribbon(aes(ymin = level - 1, ymax = level + 1), fill = "grey70") +
    geom_step(aes(y = level))
h + geom_ribbon(aes(ymin = level - 1, ymax = level + 1), fill = "grey70") +
    geom_line(aes(y = level))

A gettextRcmdr Wrapper Function

Description

This function is a gettextRcmdr wrapper function for this package.

Usage

gettextKmg2(...)

Arguments

...

arguments passed to gettext function

See Also

Rcmdr.Utilities


A Modified Function of ggsave for recordedplot Class Objects

Description

This is a modified function of ggsave for recordedplot class objects.

Usage

ggsaveKmg2(filename = default_name(plot), plot = last_plot(),
  device = default_device(filename), path = NULL, scale = 1,
  width = par("din")[1], height = par("din")[2], units = c("in",
  "cm", "mm"), dpi = 300, ...)

Arguments

filename

file name/filename of plot

plot

plot to save, defaults to last plot displayed

device

device to use, automatically extract from file name extension

path

path to save plot to (if you just want to set path and not filename)

scale

scaling factor

width

width (defaults to the width of current plotting window)

height

height (defaults to the height of current plotting window)

units

units for width and height when either one is explicitly specified (in, cm, or mm)

dpi

dpi to use for raster graphics

...

other arguments passed to graphics device

See Also

ggsave


Histogram Subclass

Description

ghist class is a subclass for histograms.

Details

This class is a subclass which show dialog boxes of histograms for graphics editing.

Fields

top:

tkwin class object; parent of widget window.

alternateFrame:

tkwin class object; a special frame for some GUI parts.

vbbox1:

variableboxes class object; the frame to select variables.

vbbox2:

variableboxes class object; the frame to select facet variables.

vbbox3:

variableboxes class object; the frame to set the no. of bins.

lbbox1:

textfields class object; the frame to set axis labels and the main title.

rbbox1:

radioboxes class object; the frame to set the axis scaling.

cbbox1:

checkboxes class object; the frame to set options.

tbbox1:

toolbox class object; the frame to set the font, the colour set, other option, and the theme.

Contains

NULL

Methods

plotWindow():

Create the window that make plots.

savePlot(plot):

Save the plot.

registRmlist(object):

Register deletable temporary objects.

removeRmlist():

Remove registered temporary objects.

setFront():

Set front parts of frames.

setBack():

Set back parts of frames.

getWindowTitle():

Get the title of the window.

getHelp():

Get the title of the help document.

getParms():

Get graphics settings parameters.

checkTheme(index):

Check themes.

checkVariable(var):

Check a variable length.

checkError(parms):

Check errors.

setDataframe(parms):

Set data frames.

getGgplot(parms):

Get ggplot.

getGeom(parms):

Get geom.

getScale(parms):

Get scale.

getCoord(parms):

Get coord.

getFacet(parms):

Get facet.

getXlab(parms):

Get xlab.

getYlab(parms):

Get ylab.

getZlab(parms):

Get zlab.

getMain(parms):

Get the main label.

getTheme(parms):

Get theme.

getOpts(parms):

Get other opts.

getPlot(parms):

Get the plot object.

getMessage():

Get the plot error message.

commandDoIt(command):

An wrapper function for command execution.

See Also

Other plot: checkError,plot_base-method, checkTheme,plot_base-method, checkVariable,plot_base-method, commandDoIt,plot_base-method, factorize-class, gbox-class, gcont-class, gdiscbar-class, gdist-class, getCoord,plot_base-method, getFacet,plot_base-method, getGeom,plot_base-method, getGgplot,plot_base-method, getHelp,plot_base-method, getMain,plot_base-method, getMessage,plot_base-method, getOpts,plot_base-method, getParms,plot_base-method, getPlot,plot_base-method, getScale,plot_base-method, getTheme,plot_base-method, getWindowTitle,plot_base-method, getXlab,plot_base-method, getYlab,plot_base-method, getZlab,plot_base-method, gkm-class, gline-class, gpie-class, gqq-class, gscat-class, gscatmat-class, plotWindow,plot_base-method, plot_base-class, registRmlist,plot_base-method, removeRmlist,plot_base-method, savePlot,plot_base-method, setBack,plot_base-method, setDataframe,plot_base-method, setFront,plot_base-method


Kaplan-Meier Plot Subclass

Description

gkm class is a subclass for Kaplan-Meier plots.

Details

This class is a subclass which show dialog boxes of Kaplan-Meier plots for graphics editing.

Fields

top:

tkwin class object; parent of widget window.

alternateFrame:

tkwin class object; a special frame for some GUI parts.

vbbox1:

variableboxes class object; the frame to select variables.

vbbox2:

variableboxes class object; the frame to select facet variables.

lbbox1:

textfields class object; the frame to set axis labels, the legend label, and the main title.

lbbox2:

textfields class object; the frame to set the tick count.

rbbox1:

radioboxes class object; the frame to set the plot type.

cbbox1:

checkboxes class object; the frame to set option(s).

tbbox1:

toolbox class object; the frame to set the font, the colour set, other option, and the theme.

Contains

NULL

Methods

plotWindow():

Create the window that make plots.

savePlot(plot):

Save the plot.

registRmlist(object):

Register deletable temporary objects.

removeRmlist():

Remove registered temporary objects.

setFront():

Set front parts of frames.

setBack():

Set back parts of frames.

getWindowTitle():

Get the title of the window.

getHelp():

Get the title of the help document.

getParms():

Get graphics settings parameters.

checkTheme(index):

Check themes.

checkVariable(var):

Check a variable length.

checkError(parms):

Check errors.

setDataframe(parms):

Set data frames.

getGgplot(parms):

Get ggplot.

getGeom(parms):

Get geom.

getScale(parms):

Get scale.

getCoord(parms):

Get coord.

getFacet(parms):

Get facet.

getXlab(parms):

Get xlab.

getYlab(parms):

Get ylab.

getZlab(parms):

Get zlab.

getMain(parms):

Get the main label.

getTheme(parms):

Get theme.

getOpts(parms):

Get other opts.

getPlot(parms):

Get the plot object.

getMessage():

Get the plot error message.

commandDoIt(command):

An wrapper function for command execution.

See Also

Other plot: checkError,plot_base-method, checkTheme,plot_base-method, checkVariable,plot_base-method, commandDoIt,plot_base-method, factorize-class, gbox-class, gcont-class, gdiscbar-class, gdist-class, getCoord,plot_base-method, getFacet,plot_base-method, getGeom,plot_base-method, getGgplot,plot_base-method, getHelp,plot_base-method, getMain,plot_base-method, getMessage,plot_base-method, getOpts,plot_base-method, getParms,plot_base-method, getPlot,plot_base-method, getScale,plot_base-method, getTheme,plot_base-method, getWindowTitle,plot_base-method, getXlab,plot_base-method, getYlab,plot_base-method, getZlab,plot_base-method, ghist-class, gline-class, gpie-class, gqq-class, gscat-class, gscatmat-class, plotWindow,plot_base-method, plot_base-class, registRmlist,plot_base-method, removeRmlist,plot_base-method, savePlot,plot_base-method, setBack,plot_base-method, setDataframe,plot_base-method, setFront,plot_base-method


Line Chart Subclass

Description

gline class is a subclass for line charts.

Details

This class is a subclass which show dialog boxes of line charts for graphics editing.

Fields

top:

tkwin class object; parent of widget window.

alternateFrame:

tkwin class object; a special frame for some GUI parts.

vbbox1:

variableboxes class object; the frame to select variables.

vbbox2:

variableboxes class object; the frame to select facet variables.

lbbox1:

textfields class object; the frame to set axis labels, the legend label, and the main title.

rbbox1:

radioboxes class object; the frame to set the plot type.

rbbox2:

radioboxes class object; the frame to set the summary type.

rbbox3:

radioboxes class object; the frame to set the scale type.

tbbox1:

toolbox class object; the frame to set the font, the colour set, other option, and the theme.

Contains

NULL

Methods

plotWindow():

Create the window that make plots.

savePlot(plot):

Save the plot.

registRmlist(object):

Register deletable temporary objects.

removeRmlist():

Remove registered temporary objects.

setFront():

Set front parts of frames.

setBack():

Set back parts of frames.

getWindowTitle():

Get the title of the window.

getHelp():

Get the title of the help document.

getParms():

Get graphics settings parameters.

checkTheme(index):

Check themes.

checkVariable(var):

Check a variable length.

checkError(parms):

Check errors.

setDataframe(parms):

Set data frames.

getGgplot(parms):

Get ggplot.

getGeom(parms):

Get geom.

getScale(parms):

Get scale.

getCoord(parms):

Get coord.

getFacet(parms):

Get facet.

getXlab(parms):

Get xlab.

getYlab(parms):

Get ylab.

getZlab(parms):

Get zlab.

getMain(parms):

Get the main label.

getTheme(parms):

Get theme.

getOpts(parms):

Get other opts.

getPlot(parms):

Get the plot object.

getMessage():

Get the plot error message.

commandDoIt(command):

An wrapper function for command execution.

See Also

scale_date

Other plot: checkError,plot_base-method, checkTheme,plot_base-method, checkVariable,plot_base-method, commandDoIt,plot_base-method, factorize-class, gbox-class, gcont-class, gdiscbar-class, gdist-class, getCoord,plot_base-method, getFacet,plot_base-method, getGeom,plot_base-method, getGgplot,plot_base-method, getHelp,plot_base-method, getMain,plot_base-method, getMessage,plot_base-method, getOpts,plot_base-method, getParms,plot_base-method, getPlot,plot_base-method, getScale,plot_base-method, getTheme,plot_base-method, getWindowTitle,plot_base-method, getXlab,plot_base-method, getYlab,plot_base-method, getZlab,plot_base-method, ghist-class, gkm-class, gpie-class, gqq-class, gscat-class, gscatmat-class, plotWindow,plot_base-method, plot_base-class, registRmlist,plot_base-method, removeRmlist,plot_base-method, savePlot,plot_base-method, setBack,plot_base-method, setDataframe,plot_base-method, setFront,plot_base-method


Base Class for GUI Frames

Description

gparts_base class is the base class for GUI frames.

Details

This class is a framework for implementing subclasses which make GUI frames.

Fields

frame:

tkwin class object; parent of widget window.

length:

Integer; number of grids.

back_list:

List of tkwin class object; list of grids.

Contains

NULL

Methods

back(perline = 3):

back method for gparts_base class.

See Also

Other guiparts: back,gparts_base-method, checkboxes-class, front,checkboxes-method, front,radioboxes-method, front,textfield-method, front,textfields-method, front,toolbox-method, front,variableboxes-method, radioboxes-class, textfield-class, textfields-class, toolbox-class, variableboxes-class


Pie Charts Subclass

Description

gpie class is a subclass for pie charts.

Details

This class is a subclass which show dialog boxes of pie charts for graphics editing.

Fields

top:

tkwin class object; parent of widget window.

alternateFrame:

tkwin class object; a special frame for some GUI parts.

vbbox1:

variableboxes class object; the frame to select variables.

vbbox2:

variableboxes class object; the frame to select facet variables.

lbbox1:

textfields class object; the frame to set axis labels and the main title.

tbbox1:

toolbox class object; the frame to set the font, the colour set, other option, and the theme.

Contains

NULL

Methods

plotWindow():

Create the window that make plots.

savePlot(plot):

Save the plot.

registRmlist(object):

Register deletable temporary objects.

removeRmlist():

Remove registered temporary objects.

setFront():

Set front parts of frames.

setBack():

Set back parts of frames.

getWindowTitle():

Get the title of the window.

getHelp():

Get the title of the help document.

getParms():

Get graphics settings parameters.

checkTheme(index):

Check themes.

checkVariable(var):

Check a variable length.

checkError(parms):

Check errors.

setDataframe(parms):

Set data frames.

getGgplot(parms):

Get ggplot.

getGeom(parms):

Get geom.

getScale(parms):

Get scale.

getCoord(parms):

Get coord.

getFacet(parms):

Get facet.

getXlab(parms):

Get xlab.

getYlab(parms):

Get ylab.

getZlab(parms):

Get zlab.

getMain(parms):

Get the main label.

getTheme(parms):

Get theme.

getOpts(parms):

Get other opts.

getPlot(parms):

Get the plot object.

getMessage():

Get the plot error message.

commandDoIt(command):

An wrapper function for command execution.

See Also

Other plot: checkError,plot_base-method, checkTheme,plot_base-method, checkVariable,plot_base-method, commandDoIt,plot_base-method, factorize-class, gbox-class, gcont-class, gdiscbar-class, gdist-class, getCoord,plot_base-method, getFacet,plot_base-method, getGeom,plot_base-method, getGgplot,plot_base-method, getHelp,plot_base-method, getMain,plot_base-method, getMessage,plot_base-method, getOpts,plot_base-method, getParms,plot_base-method, getPlot,plot_base-method, getScale,plot_base-method, getTheme,plot_base-method, getWindowTitle,plot_base-method, getXlab,plot_base-method, getYlab,plot_base-method, getZlab,plot_base-method, ghist-class, gkm-class, gline-class, gqq-class, gscat-class, gscatmat-class, plotWindow,plot_base-method, plot_base-class, registRmlist,plot_base-method, removeRmlist,plot_base-method, savePlot,plot_base-method, setBack,plot_base-method, setDataframe,plot_base-method, setFront,plot_base-method


Q-Q Plot Subclass

Description

gqq class is a subclass for Q-Q plots.

Details

This class is a subclass which show dialog boxes of Q-Q plots for graphics editing.

Fields

top:

tkwin class object; parent of widget window.

alternateFrame:

tkwin class object; a special frame for some GUI parts.

vbbox1:

variableboxes class object; the frame to select variables.

lbbox1:

textfields class object; the frame to set axis labels, the legend label, and the main title.

lbbox2:

textfields class object; the frame to set other theoretical distribution.

rbbox1:

radioboxes class object; the frame to set the theoretical distribution.

tbbox1:

toolbox class object; the frame to set the font, the colour set, other option, and the theme.

Contains

NULL

Methods

plotWindow():

Create the window that make plots.

savePlot(plot):

Save the plot.

registRmlist(object):

Register deletable temporary objects.

removeRmlist():

Remove registered temporary objects.

setFront():

Set front parts of frames.

setBack():

Set back parts of frames.

getWindowTitle():

Get the title of the window.

getHelp():

Get the title of the help document.

getParms():

Get graphics settings parameters.

checkTheme(index):

Check themes.

checkVariable(var):

Check a variable length.

checkError(parms):

Check errors.

setDataframe(parms):

Set data frames.

getGgplot(parms):

Get ggplot.

getGeom(parms):

Get geom.

getScale(parms):

Get scale.

getCoord(parms):

Get coord.

getFacet(parms):

Get facet.

getXlab(parms):

Get xlab.

getYlab(parms):

Get ylab.

getZlab(parms):

Get zlab.

getMain(parms):

Get the main label.

getTheme(parms):

Get theme.

getOpts(parms):

Get other opts.

getPlot(parms):

Get the plot object.

getMessage():

Get the plot error message.

commandDoIt(command):

An wrapper function for command execution.

See Also

Other plot: checkError,plot_base-method, checkTheme,plot_base-method, checkVariable,plot_base-method, commandDoIt,plot_base-method, factorize-class, gbox-class, gcont-class, gdiscbar-class, gdist-class, getCoord,plot_base-method, getFacet,plot_base-method, getGeom,plot_base-method, getGgplot,plot_base-method, getHelp,plot_base-method, getMain,plot_base-method, getMessage,plot_base-method, getOpts,plot_base-method, getParms,plot_base-method, getPlot,plot_base-method, getScale,plot_base-method, getTheme,plot_base-method, getWindowTitle,plot_base-method, getXlab,plot_base-method, getYlab,plot_base-method, getZlab,plot_base-method, ghist-class, gkm-class, gline-class, gpie-class, gscat-class, gscatmat-class, plotWindow,plot_base-method, plot_base-class, registRmlist,plot_base-method, removeRmlist,plot_base-method, savePlot,plot_base-method, setBack,plot_base-method, setDataframe,plot_base-method, setFront,plot_base-method


Scatter Plot Subclass

Description

gscat class is a subclass for scatter plots.

Details

This class is a subclass which show dialog boxes of scatter plots for graphics editing.

Fields

top:

tkwin class object; parent of widget window.

alternateFrame:

tkwin class object; a special frame for some GUI parts.

vbbox1:

variableboxes class object; the frame to select variables.

vbbox2:

variableboxes class object; the frame to select facet variables.

lbbox1:

textfields class object; the frame to set axis labels, the legend label, and the main title.

rbbox1:

radioboxes class object; the frame to set the smoothing type.

tbbox1:

toolbox class object; the frame to set the font, the colour set, other option, and the theme.

Contains

NULL

Methods

plotWindow():

Create the window that make plots.

savePlot(plot):

Save the plot.

registRmlist(object):

Register deletable temporary objects.

removeRmlist():

Remove registered temporary objects.

setFront():

Set front parts of frames.

setBack():

Set back parts of frames.

getWindowTitle():

Get the title of the window.

getHelp():

Get the title of the help document.

getParms():

Get graphics settings parameters.

checkTheme(index):

Check themes.

checkVariable(var):

Check a variable length.

checkError(parms):

Check errors.

setDataframe(parms):

Set data frames.

getGgplot(parms):

Get ggplot.

getGeom(parms):

Get geom.

getScale(parms):

Get scale.

getCoord(parms):

Get coord.

getFacet(parms):

Get facet.

getXlab(parms):

Get xlab.

getYlab(parms):

Get ylab.

getZlab(parms):

Get zlab.

getMain(parms):

Get the main label.

getTheme(parms):

Get theme.

getOpts(parms):

Get other opts.

getPlot(parms):

Get the plot object.

getMessage():

Get the plot error message.

commandDoIt(command):

An wrapper function for command execution.

See Also

Other plot: checkError,plot_base-method, checkTheme,plot_base-method, checkVariable,plot_base-method, commandDoIt,plot_base-method, factorize-class, gbox-class, gcont-class, gdiscbar-class, gdist-class, getCoord,plot_base-method, getFacet,plot_base-method, getGeom,plot_base-method, getGgplot,plot_base-method, getHelp,plot_base-method, getMain,plot_base-method, getMessage,plot_base-method, getOpts,plot_base-method, getParms,plot_base-method, getPlot,plot_base-method, getScale,plot_base-method, getTheme,plot_base-method, getWindowTitle,plot_base-method, getXlab,plot_base-method, getYlab,plot_base-method, getZlab,plot_base-method, ghist-class, gkm-class, gline-class, gpie-class, gqq-class, gscatmat-class, plotWindow,plot_base-method, plot_base-class, registRmlist,plot_base-method, removeRmlist,plot_base-method, savePlot,plot_base-method, setBack,plot_base-method, setDataframe,plot_base-method, setFront,plot_base-method


Scatter Plot Matrix Subclass

Description

gscatmat class is a subclass for a scatter plot matrix.

Details

This class is a subclass which show dialog boxes of a scatter plot matrix for graphics editing.

Fields

top:

tkwin class object; parent of widget window.

alternateFrame:

tkwin class object; a special frame for some GUI parts.

vbbox1:

variableboxes class object; the frame to select variables.

lbbox1:

textfields class object; the frame to set the main title.

rbbox1:

radioboxes class object; the frame to set the smoothing type.

tbbox1:

toolbox class object; the frame to set the font, the colour set, other option, and the theme.

Contains

NULL

Methods

plotWindow():

Create the window that make plots.

savePlot(plot):

Save the plot.

registRmlist(object):

Register deletable temporary objects.

removeRmlist():

Remove registered temporary objects.

setFront():

Set front parts of frames.

setBack():

Set back parts of frames.

getWindowTitle():

Get the title of the window.

getHelp():

Get the title of the help document.

getParms():

Get graphics settings parameters.

checkTheme(index):

Check themes.

checkVariable(var):

Check a variable length.

checkError(parms):

Check errors.

setDataframe(parms):

Set data frames.

getGgplot(parms):

Get ggplot.

getGeom(parms):

Get geom.

getScale(parms):

Get scale.

getCoord(parms):

Get coord.

getFacet(parms):

Get facet.

getXlab(parms):

Get xlab.

getYlab(parms):

Get ylab.

getZlab(parms):

Get zlab.

getMain(parms):

Get the main label.

getTheme(parms):

Get theme.

getOpts(parms):

Get other opts.

getPlot(parms):

Get the plot object.

getMessage():

Get the plot error message.

commandDoIt(command):

An wrapper function for command execution.

See Also

Other plot: checkError,plot_base-method, checkTheme,plot_base-method, checkVariable,plot_base-method, commandDoIt,plot_base-method, factorize-class, gbox-class, gcont-class, gdiscbar-class, gdist-class, getCoord,plot_base-method, getFacet,plot_base-method, getGeom,plot_base-method, getGgplot,plot_base-method, getHelp,plot_base-method, getMain,plot_base-method, getMessage,plot_base-method, getOpts,plot_base-method, getParms,plot_base-method, getPlot,plot_base-method, getScale,plot_base-method, getTheme,plot_base-method, getWindowTitle,plot_base-method, getXlab,plot_base-method, getYlab,plot_base-method, getZlab,plot_base-method, ghist-class, gkm-class, gline-class, gpie-class, gqq-class, gscat-class, plotWindow,plot_base-method, plot_base-class, registRmlist,plot_base-method, removeRmlist,plot_base-method, savePlot,plot_base-method, setBack,plot_base-method, setDataframe,plot_base-method, setFront,plot_base-method


Listing the last command

Description

This function lists the last command is executed by RcmdrPlugin.KMggplot2

Usage

lastcom()

Select Non Factor Variables

Description

This is a function to select non-factor variables for the Rcmdr package.

Usage

nonFactors()

See Also

Rcmdr.Utilities


Check Non Factor Variables in The Active Dataset

Description

This is a function to check the active dataset has more than or equal to n non-factor variables.

Usage

nonFactorsP(n = 1)

Arguments

n

Numeric: the target number of n.

Value

result

Boolean; the active dataset has or does not have more than or equal to n non-factor variables.

See Also

Rcmdr.Utilities


Base Class for Plot Windows

Description

plot_base class is the base class for plot windows.

Details

This class is a framework for implementing subclasses which show dialog boxes for graphics editing.

Fields

top:

tkwin class object; parent of widget window.

alternateFrame:

tkwin class object; a special frame for some GUI parts.

rmlist:

List of character; deletable temporary objects.

mode:

numeric; the executive mode (0 = justDoIt, 1 = doItAndPrint).

Contains

NULL

Methods

plotWindow():

Create the window that make plots.

savePlot(plot):

Save the plot.

registRmlist(object):

Register deletable temporary objects.

removeRmlist():

Remove registered temporary objects.

setFront():

Set front parts of frames.

setBack():

Set back parts of frames.

getWindowTitle():

Get the title of the window.

getHelp():

Get the title of the help document.

getParms():

Get graphics settings parameters.

checkTheme(index):

Check themes.

checkVariable(var):

Check a variable length.

checkError(parms):

Check errors.

setDataframe(parms):

Set data frames.

getGgplot(parms):

Get ggplot.

getGeom(parms):

Get geom.

getScale(parms):

Get scale.

getCoord(parms):

Get coord.

getFacet(parms):

Get facet.

getXlab(parms):

Get xlab.

getYlab(parms):

Get ylab.

getZlab(parms):

Get zlab.

getMain(parms):

Get the main label.

getTheme(parms):

Get theme.

getOpts(parms):

Get other opts.

getPlot(parms):

Get the plot object.

getMessage():

Get the plot error message.

commandDoIt(command):

An wrapper function for command execution.

See Also

Other plot: checkError,plot_base-method, checkTheme,plot_base-method, checkVariable,plot_base-method, commandDoIt,plot_base-method, factorize-class, gbox-class, gcont-class, gdiscbar-class, gdist-class, getCoord,plot_base-method, getFacet,plot_base-method, getGeom,plot_base-method, getGgplot,plot_base-method, getHelp,plot_base-method, getMain,plot_base-method, getMessage,plot_base-method, getOpts,plot_base-method, getParms,plot_base-method, getPlot,plot_base-method, getScale,plot_base-method, getTheme,plot_base-method, getWindowTitle,plot_base-method, getXlab,plot_base-method, getYlab,plot_base-method, getZlab,plot_base-method, ghist-class, gkm-class, gline-class, gpie-class, gqq-class, gscat-class, gscatmat-class, plotWindow,plot_base-method, registRmlist,plot_base-method, removeRmlist,plot_base-method, savePlot,plot_base-method, setBack,plot_base-method, setDataframe,plot_base-method, setFront,plot_base-method


Radio Boxes Subclass

Description

radioboxes class is a subclass for GUI radio box frame.

Details

This class is a subclass which make GUI radio box frame.

Fields

frame:

tkwin class object; parent of widget window.

length:

Integer; number of grids.

back_list:

List of tkwin class object; list of grids.

value:

tclVar class object; the value of the radio box frame.

rbradioboxes:

tkwin class object; the radio box frame.

Contains

gparts_base

Methods

back(perline = 3):

back method for gparts_base class.

front(top, labels, title = "", initValue = 1, right.buttons = FALSE):

front method for radioboxes subclass.

See Also

Other guiparts: back,gparts_base-method, checkboxes-class, front,checkboxes-method, front,radioboxes-method, front,textfield-method, front,textfields-method, front,toolbox-method, front,variableboxes-method, gparts_base-class, textfield-class, textfields-class, toolbox-class, variableboxes-class


Text Field Subclass

Description

textfield class is a subclass for GUI text field frame.

Details

This class is a subclass which make GUI text field frame.

Fields

frame:

tkwin class object; parent of widget window.

length:

Integer; number of grids.

back_list:

List of tkwin class object; list of grids.

value:

tclVar class object; the value of the text field frame.

Contains

gparts_base

Methods

back(perline = 3):

back method for gparts_base class.

front(top, initialValue, boxwidth, title):

front method for textfield subclass.

See Also

Other guiparts: back,gparts_base-method, checkboxes-class, front,checkboxes-method, front,radioboxes-method, front,textfield-method, front,textfields-method, front,toolbox-method, front,variableboxes-method, gparts_base-class, radioboxes-class, textfields-class, toolbox-class, variableboxes-class


Multiple Text Fields Subclass

Description

textfields class is a subclass for GUI multiple text fileds frame.

Details

This class is a subclass which make GUI multiple text fileds frame.

Fields

frame:

tkwin class object; parent of widget window.

length:

Integer; number of grids.

back_list:

List of tkwin class object; list of grids.

fields:

List of textfield class object; list of textfield.

Contains

gparts_base

Methods

back(perline = 3):

back method for gparts_base class.

front(top, initValues, titles, boxwidth = "20"):

front method for textfields subclass.

See Also

Other guiparts: back,gparts_base-method, checkboxes-class, front,checkboxes-method, front,radioboxes-method, front,textfield-method, front,textfields-method, front,toolbox-method, front,variableboxes-method, gparts_base-class, radioboxes-class, textfield-class, toolbox-class, variableboxes-class


A Theme for No of At Risk in Kaplan-Meier Plots

Description

These functions generate graphics themes for no of at risk in Kaplan-Meier Plots.

Usage

theme_natrisk(base_theme, base_size = 20, base_family = "")

Arguments

base_theme

base theme name

base_size

base font size

base_family

font family name

See Also

ggplot


A Theme for No of At Risk in Kaplan-Meier Plots

Description

These functions generate graphics themes for no of at risk in Kaplan-Meier Plots.

Usage

theme_natrisk21(base_theme, base_size = 20, base_family = "")

Arguments

base_theme

base theme name

base_size

base font size

base_family

font family name

See Also

ggplot


A Theme for No of At Risk in Kaplan-Meier Plots

Description

These functions generate graphics themes for no of at risk in Kaplan-Meier Plots.

Usage

theme_natriskbg(base_theme, base_size = 20, base_family = "")

Arguments

base_theme

base theme name

base_size

base font size

base_family

font family name

See Also

ggplot


A Simple Black and White Theme

Description

A Simple Black and White Theme

Usage

theme_simple(base_size = 16, base_family = "")

Arguments

base_size

base font size

base_family

font family name

See Also

ggplot


A Wrapper Theme for ggthemes's theme_wsj

Description

A Wrapper Theme for ggthemes's theme_wsj

Usage

theme_wsj2(base_size = 16, base_family = "")

Arguments

base_size

base font size

base_family

font family name

See Also

ggplot theme_wsj


Tool Box Subclass

Description

toolbox class is a subclass for GUI tool box frame.

Details

This class is a subclass which make GUI tool box frame.

Fields

frame:

tkwin class object; parent of widget window.

length:

Integer; number of grids.

back_list:

List of tkwin class object; list of grids.

size:

textfield class object; the value of the font size frame.

family:

listbox class object; the value of the font family frame.

colour:

listbox class object; the value of the colour set frame.

goption:

checkboxes class object; values of other options frame.

theme:

radioboxes class object; the value of the graph theme frame.

Contains

gparts_base

Methods

back(perline = 3):

back method for gparts_base class.

front(top, showcolourbox = TRUE, fontSize = unlist(options("kmg2FontSize")), fontSize = unlist(options("kmg2FontSize")), fontFamily = unlist(options("kmg2FontFamily")), colourSet = unlist(options("kmg2ColourSet")), saveGraph = unlist(options("kmg2SaveGraph")), themeBase = unlist(options("kmg2Theme")) ):

front method for toolbox subclass.

See Also

Other guiparts: back,gparts_base-method, checkboxes-class, front,checkboxes-method, front,radioboxes-method, front,textfield-method, front,textfields-method, front,toolbox-method, front,variableboxes-method, gparts_base-class, radioboxes-class, textfield-class, textfields-class, variableboxes-class


Variable Boxes Subclass

Description

variableboxes class is a subclass for GUI variable box frame.

Details

This class is a subclass which make GUI variable box frame.

Fields

frame:

tkwin class object; parent of widget window.

length:

Integer; number of grids.

back_list:

List of tkwin class object; list of grids.

variable:

List of listbox class object; variables of the variable box frame.

Contains

gparts_base

Methods

back(perline = 3):

back method for gparts_base class.

front(top, types, titles, modes = "default"):

front method for variableboxes subclass.

See Also

Other guiparts: back,gparts_base-method, checkboxes-class, front,checkboxes-method, front,radioboxes-method, front,textfield-method, front,textfields-method, front,toolbox-method, front,variableboxes-method, gparts_base-class, radioboxes-class, textfield-class, textfields-class, toolbox-class


Wrapper Function of Box Plot Subclass

Description

windowBox function is a wrapper function of gbox class for the R-commander menu bar.

Usage

windowBox()

Wrapper Function of Contour Plot Subclass

Description

windowContour function is a wrapper function of gcont class for the R-commander menu bar.

Usage

windowContour()

Wrapper Function of Discrete Bar Charts Subclass

Description

windowDiscretebar function is a wrapper function of gdiscbar class for the R-commander menu bar.

Usage

windowDiscretebar()

Wrapper Function of Beta Distribution Plot Subclass

Description

windowDistBeta function is a wrapper function of gdist class for the R-commander menu bar.

Usage

windowDistBeta()

Wrapper Function of Binomial Distribution Plot Subclass

Description

windowDistBinom function is a wrapper function of gdist class for the R-commander menu bar.

Usage

windowDistBinom()

Wrapper Function of Cauchy Distribution Plot Subclass

Description

windowDistCauchy function is a wrapper function of gdist class for the R-commander menu bar.

Usage

windowDistCauchy()

Wrapper Function of Chi-square Distribution Plot Subclass

Description

windowDistChisq function is a wrapper function of gdist class for the R-commander menu bar.

Usage

windowDistChisq()

Wrapper Function of Exponential Distribution Plot Subclass

Description

windowDistExp function is a wrapper function of gdist class for the R-commander menu bar.

Usage

windowDistExp()

Wrapper Function of F Distribution Plot Subclass

Description

windowDistF function is a wrapper function of gdist class for the R-commander menu bar.

Usage

windowDistF()

Wrapper Function of Gamma Distribution Plot Subclass

Description

windowDistGamma function is a wrapper function of gdist class for the R-commander menu bar.

Usage

windowDistGamma()

Wrapper Function of Geometric Distribution Plot Subclass

Description

windowDistGeom function is a wrapper function of gdist class for the R-commander menu bar.

Usage

windowDistGeom()

Wrapper Function of Hypergeometric Distribution Plot Subclass

Description

windowDistHyper function is a wrapper function of gdist class for the R-commander menu bar.

Usage

windowDistHyper()

Wrapper Function of Log-normal Distribution Plot Subclass

Description

windowDistLnorm function is a wrapper function of gdist class for the R-commander menu bar.

Usage

windowDistLnorm()

Wrapper Function of Logistic Distribution Plot Subclass

Description

windowDistLogis function is a wrapper function of gdist class for the R-commander menu bar.

Usage

windowDistLogis()

Wrapper Function of Negative Binomial Distribution Plot Subclass

Description

windowDistNbinom function is a wrapper function of gdist class for the R-commander menu bar.

Usage

windowDistNbinom()

Wrapper Function of Normal Distribution Plot Subclass

Description

windowDistNorm function is a wrapper function of gdist class for the R-commander menu bar.

Usage

windowDistNorm()

Wrapper Function of Poisson Distribution Plot Subclass

Description

windowDistPois function is a wrapper function of gdist class for the R-commander menu bar.

Usage

windowDistPois()

Wrapper Function of t Distribution Plot Subclass

Description

windowDistT function is a wrapper function of gdist class for the R-commander menu bar.

Usage

windowDistT()

Wrapper Function of Uniform Distribution Plot Subclass

Description

windowDistUnif function is a wrapper function of gdist class for the R-commander menu bar.

Usage

windowDistUnif()

Wrapper Function of Weibull Distribution Plot Subclass

Description

windowDistWeibull function is a wrapper function of gdist class for the R-commander menu bar.

Usage

windowDistWeibull()

Wrapper Function of Factorize Subclass

Description

windowFactorize function is a wrapper function of factorize class for the R-commander menu bar.

Usage

windowFactorize()

Wrapper Function of Histogram Subclass

Description

windowHist function is a wrapper function of ghist class for the R-commander menu bar.

Usage

windowHist()

Wrapper Function of Kaplan-Meier Plot Subclass

Description

windowKM function is a wrapper function of gkm class for the R-commander menu bar.

Usage

windowKM()

Wrapper Function of Line Chart Subclass

Description

windowScatter function is a wrapper function of gline class for the R-commander menu bar.

Usage

windowLine()

Wrapper Function of Pie Charts Subclass

Description

windowPie function is a wrapper function of gpie class for the R-commander menu bar.

Usage

windowPie()

Wrapper Function of Q-Q Plot Subclass

Description

windowQQ function is a wrapper function of gqq class for the R-commander menu bar.

Usage

windowQQ()

Wrapper Function of Scatter Plot Subclass

Description

windowScatter function is a wrapper function of gscat class for the R-commander menu bar.

Usage

windowScatter()

Wrapper Function of Scatter Plot Matrix Subclass

Description

windowScattermat function is a wrapper function of gscatmat class for the R-commander menu bar.

Usage

windowScattermat()