Wrap the qplot
in print
.
knitr
will do that for you if the qplot
is outside a loop, but (at least the version I have installed) doesn’t detect this inside the loop (which is consistent with the behaviour of the R command line).
More Related Contents:
- Difference: “Compile PDF” button in RStudio vs. knit() and knit2pdf()
- ggplot plots in scripts do not display in Rstudio
- How to use objects from global environment in Rstudio Markdown
- Rstudio rmarkdown: both portrait and landscape layout in a single PDF
- How to convert R Markdown to HTML? I.e., What does “Knit HTML” do in Rstudio 0.96?
- two-column layouts in RStudio presentations/slidify/pandoc
- R – Markdown avoiding package loading messages
- Specify height and width of ggplot graph in Rmarkdown knitr output
- Programmatically insert header and plot in same code chunk with R markdown using results=’asis’
- New R-Studio version 0.98.932 deletes .md file – how to prevent?
- Setting work directory in knitr using opts_chunk$set(root.dir = …) doesn’t work
- Automatically adjust LaTeX table width to fit pdf using knitr and Rstudio
- How can the facet function in ggplot be used to create a histogram in order to visualize distributions for all variables in a dataset?
- Add a common Legend for combined ggplots
- How can I remove empty factors from ggplot2 facets?
- How to add a ggplot2 subtitle with different size and colour?
- How can we make xkcd style graphs?
- Plot data in descending order as appears in data frame [duplicate]
- R knitr: Possible to programmatically modify chunk labels?
- Inserting a table under the legend in a ggplot2 histogram
- How can I add a table to my ggplot2 output?
- set only lower bound of a limit for ggplot
- set ggplot plots to have same x-axis width and same space between dot plot rows
- different size facets proportional of x axis on ggplot 2 r
- ggplot2 plot area margins?
- Insert a logo in upper right corner of R markdown pdf document
- Add x and y axis to all facet_wrap
- How to change positions of x and y axis in ggplot2
- R Plot Filled Longitude-Latitude Grid Cells on Map
- How to change stacking order in stacked bar chart in R?