RcssWatch: development tool for adjusting Rcss and R graphics code

Description Usage Arguments Examples

View source: R/RcssWatch.R

Description

This is a macro script that loads R code and a default Rcss style, and then executes a function. This process is repeated indefinitely.

Usage

1

Arguments

f

function or character of function name, executed at each iteration

files

character, paths to R and Rcss files

...

other arguments, passed to function f

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Note: the examples below draw a charat once and exit.
# To enable quick re-drawing, RcssWatch must be provided with file paths

# draw and redraw a bar plot
RcssWatch(plot, x=1:4, y=1:4)

# alternative syntax, using a function name as a string
custom.barplot <- function(x=1:4, main="") { barplot(x, main=main) }
RcssWatch("custom.barplot", main="Custom")

# for more interesting behavior, specify a files with styles and R source

Rcssplot documentation built on Jan. 8, 2020, 5:11 p.m.