简体   繁体   中英

r notebook plotting with lines

When plotting some lines via lines to an existing plot object in plain R this works just fine. However, in R notebooks from Rstudio this will fail. How can I use this functionality in notebooks?

This has bit me in the rear many a time. What I found works is running all plot related lines at once (select and run) and not step-by-step. Alternatively you can press the green arrow (Run current chunk) or use Ctrl + Alt + c .

My RStudio version is 1.0.44.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM