# NOT RUN {
# }
# NOT RUN {
tikzfiles <- tikz.init("plotname",width=3,height=4)
# }
# NOT RUN {
plot(x=c(1:3), y=c(1:3)^2, xlab="$x$", ylab="$y$")
# }
# NOT RUN {
tikz.finalize(tikzfiles=tikzfiles, clean=TRUE)
# }
# NOT RUN {
file.remove("plotname.pdf")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab