Search code examples
rggplot2r-markdowngeom-bar

ggplot barplot knitted with R Markdown


Problem: The labels of the y-axis of this plot are too close too each other.

Question: How can I increase the spacing between labels?

enter image description here


Solution

  • Set the fig.height in your rmd chunck.
    Sample

    ```{r, warning=FALSE,message=FALSE, fig.height=12, fig.width=12}
    # Your ggplot code goes over here
    
    ```