output an image using Ctrl-Print
////////////////////////////

Sometimes, we want to copy what we see, i.e., the whole screen. 

 For this case, we could use Ctrl-Print, i.e., hit those two keys same time. 

 If you have picPick software installed, you will see the following instruction

  "Click on the left mouse button to select area."

////////////////////////////

Links
////////////////////////////
Bhalla, Deepanshu, 2019, Create Animation In R : Learn by Examples,
   https://www.listendata.com/2019/05/create-animation-in-r-learn-with.html   

Mariana Maroto, Mariana, 2021, How to create an animated chart (gif) in R for     beginners,
   https://marianamarotob.medium.com/how-to-create-an-animated-chart-gif-in-r-for-beginners-de17f3cc059f

Peng, Roger D., R Programming for Data Science,  https://bookdown.org/rdpeng/rprogdatascience/

R Documentation, https://stat.ethz.ch/R-manual/R-devel/library/base/html/00Index.html

R-bloggers, https://www.r-bloggers.com/

R Gallary, https://r-graph-gallery.com/271-ggplot2-animated-gif-chart-with-gganimate.html

Stack Overflow, https://stackoverflow.com/questions/tagged/r

Wickham, Hadley and Garrett Grolemund, R for Data Science, https://r4ds.had.co.nz

Wickham, Hadley, Advanced R, http://adv-r.had.co.nz/

R: Polygon Drawing, http://127.0.0.1:30330/library/graphics/html/polygon.html
    s://towardsdatascience.com/create-animated-bar-charts-using-r-31d09e5841da
////////////////////////////

Snipping tool
////////////////////////////

Method I: using snipping tool
-------------------------------
  Step 1: Generate your image 
  Step 2: Launch Snipping Tool
  Step 3: click "New"
  Step 4: Highlight the area from your Excel workbook
  Step 5: save as an image.  
////////////////////////////

Using paint softare
////////////////////////////
Method II: using paint 
----------
  Step 1: Launch R generate your image 

  Step 2: Click the image 

  Step 3: choose method to save 

////////////////////////////

the ggsave() function
////////////////////////////

library(ggplot2)
data(mtcars)
ggplot(mtcars, aes(mpg, wt))+ geom_point()
#setwd("c:/temp")
# here, the device is inferred from the filename extension
ggsave("mtcars.pdf")
ggsave("mtcars.png")
#
unlink("mtcars.pdf")
unlink("mtcars.png")

////////////////////////////