# NOT RUN {
# 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
# }
Run the code above in your browser using DataLab