| plot | R Documentation |
plot() makes it easy to visualize the results of the created
ptable-object that has been created by create_cnt_ptable(),
create_cnt_ptable() or modify_cnt_ptable().
plot(obj, type = "d", file = NULL, ...)
obj |
an object of class |
type |
(character) type of graph: distribution "d" (standard), perturbation panel ("p"), transition matrix "t" |
file |
if not |
... |
additional parameters passed to methods |
The selected graph is displayed, but there is no direct return
value. The output could also be assigned to an object to receive an object
of class ggplot.
Tobias Enderle
# Create a ptable for frequency count tables and modify the intervals
ptab <- create_cnt_ptable(D = 3, V = 1.05, js = 1, label = "Example")
ptab_mod <- modify_cnt_ptable(ptab, threshold = 0.3, seed = 5432)
# Distribution Plot of the Noise
plot(ptab_mod, type = "d")
# Perturbations Panel of the Noise
plot(ptab_mod, type = "p")
## Plot and Save the Transition Matrix
plot(ptab_mod, type ="t",
file = tempfile("example_tMatrix", fileext = ".pdf"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.