Skip to content

Instantly share code, notes, and snippets.

@kbroman
Created August 23, 2016 04:56
Show Gist options
  • Save kbroman/93502f6e8a057acee1152589367e5023 to your computer and use it in GitHub Desktop.
Save kbroman/93502f6e8a057acee1152589367e5023 to your computer and use it in GitHub Desktop.
\documentclass{article}
\begin{document}
Here's a scatterplot:
<<scatterplot>>=
x <- rnorm(100)
y <- x + rnorm(100)
plot(x,y)
@
And a histogram:
<<histogram>>=
hist(x, breaks=20)
@
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment