Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. documentclass[man, floatsintext]{apa}
  2. % Doesn't work.
  3.  
  4. %documentclass[jou, floatsintext]{apa}
  5. % Works
  6.  
  7. %documentclass{article}
  8. %Works
  9.  
  10.  
  11. begin{document}
  12. Test
  13.  
  14. <<testChunk, echo=FALSE, fig.cap="DEMO">>=
  15. library(knitr)
  16. x <- c(1, 2, 3, 4, 5)
  17. y <- c(1, 2, 3, 4, 5)
  18. test.df <- as.data.frame(cbind(x, y))
  19. library(ggplot2)
  20. ggplot(test.df, aes(x=x, y=y))+geom_line()
  21. @
  22.  
  23. The reference should appear here: Figure ref{fig:testChunk}
  24.  
  25. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement