by brianto2010 · 14y ago · 0 comments
Whenever I use LaTeX, it's usually for math/physics/stat homework where either computation or graphs are involved. It would be lovely if I could somehow inject (for example)
<<echo=FALSE,fig=TRUE>>=
x <- -5:5
y <- (x - 2)^2 - 5
plot(x, y)
@
into the page and have a graph show up.That would be really cool -- I use Sweave and R a lot, and I often wish I could do this in writeLaTeX, but I haven't made much progress on it. The server side would be pretty complicated.
For simple plots, it's amazing what you can do in LaTeX with pgfplots and similar -- e.g. http://writelatex.com/4134bzfwng
Thanks for the comment!