-
-
Notifications
You must be signed in to change notification settings - Fork 878
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non default plot size messes with "legend" #258
Comments
should be fixed now; you must be using an interactive R session, which is not good unless you have special reasons; normally you should call knitr in a non-interactive R session via |
It is fixed, thanks! I do use knitr interactively because I like being able to play with my objects and try things out before actually putting code in my Rnw. Why is that bad? |
because finally you will have to run it non-interactively when you run it interactively, the objects are generated in the global environment, and you may screw up some randomly without noticing it (e.g. you created a function in the console but forgot to do it in the source document) if you want to do exploratory work, you can use RStudio to run code chunks; it is pretty convenient. When it comes to compile the whole document, just hit the button to compile it in a separate R session to guarantee everything works fine |
Ok, thanks. I'm pretty entrenched in emacs+terminal though ;-) |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
I would expect the plots produced by the 2 samples below to be identical but they are not:
Notice that the legend spacing is incorrect (the result from knitr looks like what happens when you manually resize your device after plotting).
The text was updated successfully, but these errors were encountered: