1. Graphics Devices
    1. ?Devices ?device
      1. only one device is the 'active' device
    2. screen devices
      1. Unix/Linux
        1. x11()
      2. Windows
        1. windows()
      3. Mac
        1. quartz()
    3. off-screen devices
      1. vector
        1. pdf()
        2. svg()
        3. postscript()
      2. bitmap
        1. bmp()
        2. jpeg()
        3. png()
        4. tiff()
    4. save plot
      1. 1. filetype("filename", width=xx, height=xx)
      2. 2. plot
      3. 3. dev.off()
  2. Plotting Systems
    1. base
      1. "artist's palette" model
        1. 1. initiate a plot
        2. 2. annotate the plot
    2. lattice
      1. Deepayan Sarkar
      2. creates plots with a single function call
    3. ggplot2
      1. Hadley Wickham
      2. the grammar of graphics(Leland Wilkinson)
  3. Functions & Arguments
    1. help(package="graphics")
    2. plot regions
      1. outer margin
      2. figure region
      3. plot region
    3. plot variable(s)
      1. single variable
      2. two variables
      3. many variables
    4. par()
      1. read-only
        1. cin
        2. ra
        3. csi
        4. cxy
        5. din
        6. page
      2. set only by par()
        1. ask
        2. fig, fin
        3. lheight
        4. mai, mar, mex, mfcol, mfrow, mfg
        5. new
        6. oma, omd, omi
        7. pin, plt, ps, pty
        8. usr
        9. xlog, ylog
        10. ylbias
      3. can also be set by high-level plot functions
        1. ?par
      4. parameters' values
        1. par()$parameter
        2. par("parameter")
    5. basic graphic commands
      1. high-level
        1. plot()
        2. barplot()
          1. Dot Plots: A Useful Alternative to Bar Charts
        3. boxplot()
        4. hist()
        5. pie()
        6. etc.
      2. low-level
        1. points()
        2. abline()
        3. lines()
        4. axis()
        5. text()
        6. mtext()
        7. etc.
      3. interactive
        1. locator()
        2. identify()
        3. getGraphicsEvent()
    6. Mathematical Annotation
      1. ?plotmath
      2. demo(plotmath)
      3. Mathematical Annotation in R
    7. multiple plots
      1. plot region
        1. low-level commands
        2. high-level commands
      2. plot regions
        1. equal size
          1. par: mfrow, mfcol
        2. unequal size
          1. par: fig, fin split.screen() layout()
  4. packages
    1. CRAN packages:
    2. Task View: Graphics
  5. Colors
    1. ref.
      1. ColorChart.pdf
      2. colorPaletteCheatsheet.pdf
    2. colors()
      1. R built-in colors: 657
    3. how to use?
      1. color name/index
      2. hexidecimal number
      3. functions
        1. rgb()
        2. rgb2hsv()
        3. col2rgb()
        4. colorRamp()
        5. colorRampPalette()
        6. etc.
    4. palettes
      1. set/view palettes
        1. palette()
      2. grDevices
        1. cm.colors()
        2. gray.colors(), grey.colors()
        3. heat.colors()
        4. rainbow()
        5. terrain.colors()
        6. topo.colors()
      3. packages
        1. colorspace
        2. dichromat
        3. munsell
        4. RColorBrewer
        5. wesanderson
  6. Ref.
    1. R Graphs Cookbook Second Edition by Hrishi V. Mittal
    2. R Graphics Second Edition by Paul Murrell
      1. R code for figures
    3. R Graphics Cookbook by Winston Chang
    4. Exploratory Data Analysis with R
    5. New Energy Research/R-Programming
    6. THE R GRAPH GALLERY
    7. ggplot2: elegrant graphics for data analysis by Hadley Wickham
      1. The Grammar of Graphics by Leland Wilkinson
    8. Lattice: Multivariate Data Visualization with R by Deepayan Sarkar
    9. Junk Charts