Learn R Programming

GenoView (version 1.6.0)

notebookVis: Visualize Grob objects in gnotebook widget

Description

Create a new page in the gnotebook widget to display the plot with a unique label

Usage

notebookVis(nb, plt, type, suff)

Arguments

nb
Visible gnotebook widget
plt
Grob object to plot
type
Description of plt in tab label
suff
Incremental numeric to follow type in tab label

Value

plt
The same input plt which has been visualized
plt.lab
The tab label for the notebook page displaying plt

Examples

Run this code
if (interactive()) {
library(grid)
library(gWidgets)

# Create a grob object
l <- linesGrob()

# Create the notebook widget
win <- gwindow()
nb <- gnotebook(cont = win)
notebookVis(nb = nb, plt = l, type = "Example", suff = 1)
}

Run the code above in your browser using DataLab