Rendering a scatterplot in html output #2622
-
Hi guys, I want to show this scatterplot in the viewer output, when I press the rend button. At the moment it only shows the plot under the chunk. Is there a chunk options that allows me to do that? In order to show it in the html or pdf output im saving the image and pasting it under dude chunk text, which is not optimal when the document is huge. Below is the code: {r} / Kenneth. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Hi @KennethGottfredsen, next to the "Render" button, you have the "Gear" button. Under the "Gear" button you will find the option that you want. Check "Chunk Output in Console". |
Beta Was this translation helpful? Give feedback.
-
@KennethGottfredsen can you share a qmd source code that reproduce the issue ? From your subset of code above, you have
This means that when you render, the chunk won't be evaluated, so you'll only have the source code chunk in the output, as you described. You probably don't want this option to FALSE if you want the plot to show in your output |
Beta Was this translation helpful? Give feedback.
-
For this you need Do you want to evaluate de R code ? Do you want the plot in the HTML output ?
You see this in the error message you have
This means the R function is not found, so probably that Please to read about Get Started for R with Quarto to understand how this works. https://quarto.org/docs/get-started/hello/rstudio.html And next time, please provide a full reproducible example. Thank you |
Beta Was this translation helpful? Give feedback.
For this you need
echo: true
to show code output. This is the default,eval: false
means don't evaluate the code.Do you want to evaluate de R code ? Do you want the plot in the HTML output ?
If so you need to activate evaluation for the chunk.
You see this in the error message y…