Description Usage Arguments Examples
export figures in the required file format (png,tif,pdf)
1 |
func |
function that generates a plot |
file |
output figure file name |
res2 |
resolution |
ratio |
ratio between with and height |
type |
pdf, png or tif |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | EXAMPLE 1
x <- 1:10
y <- 1:10
export(func=plot(x,y),'test1',type='pdf')
export(func=plot(x,y),'test1',type='tif')
export(func=plot(x,y),'test1',type='png')
EXAMPLE 2
plot_function <- function {
par(mfrow=c(1,2))
plot(x,y)
boxplot(x)
}
export(func=plot_function(),'test2',type='pdf')
export(func=plot_function(),'test2',type='tif')
export(func=plot_function(),'test2',type='png')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.