-
Notifications
You must be signed in to change notification settings - Fork 4
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
A blank plot is producted with plot #58
Comments
try
in Rmarkdown code trunk. |
it doesn't work... |
We can't reproduce your issue. You can check the vignette of ggbreak, https://cran.r-project.org/web/packages/ggbreak/vignettes/ggbreak.html, which was generated by Rmarkdown file and it works fine. |
@SficPan I experienced this too, but after I 'knit' the Rmd doc the blank plot is not visible at all. From my perspective that means I don't really care about it - it's mildly annoying, but I can live with it. @GuangchuangYu - I think @SficPan meant that within the Rstudio window, when you run a code chunk, you see two thumbnail plots - the blank plot, and then the plot we care about. Only the good plot appears when rendering the Rmd (I tried html and github_document). Here is a screen shot. The thumbnails are right below the code chunk. I'll put the actual code in a separate comment |
--- ```{r setup, include=FALSE} ```{r} ```{r} p1 <- ggplot(d, aes(y, x)) + geom_col(orientation="y") p1 + p2 |
When I run:
graph1 <- ggplot(a4,mapping = aes(Day,x_value,colour=factor(patient)))+
geom_line()+
guides(color=guide_legend(title = "Patient"))+
scale_y_break(c(0.3,0.75), scales = 1.5)+
scale_y_break(c(1.55,2.75), scales = 1.5)
The variable graph1 is included with two plots with one blank. I don't know how to separate it from graph1 so it may cause some inconvenience in Rmarkdown.
The text was updated successfully, but these errors were encountered: