R - Plot (Graphic System)

Card Puncher Data Processing


The general form of a formula specifying a plot is

y ˜ x | g


  • y is the coordinate on the vertical axis,
  • x is the coordinate on the horizontal axis,
  • and g is a grouping factor or expression.

For special cases like the histogram, the vertical axis is pre-specified. In these cases y is omitted.

Graphic System

To read https://cran.r-project.org/web/views/Graphics.html

The R graphics system is composed of:

  • graphics packages;
  • graphics systems:
  • a graphics engine and devices;
  • and graphics device packages


All graphics output is directed to an active device that will dictate the output format that will be produced.

Only one device can be currently active and receive the graphics output.

# Open a device
# Close a device
# List of open devices
# List of the current (ie active) open device
# Make a device active
# Copies all output from the active device to another device.
# Make the next or previous device active
dev.next() and dev.prev()
# Close all open devices

Example in png.


The user can control the format of the default device using the options() function.



### Or

See help



Plotting character (pch)

An easy way to see them all:


Rplotting Character

Documentation / Reference

Discover More
R Validation Set Model Selection
R - Feature Selection - Model selection with Direct validation (Validation Set or Cross validation)

Feature selection through model generation and selection through a direct approach with : validation set and cross validation in R We are picking a subset of the observations and put them...
R Histogram
R - Histogram

How to make histogram in R. plot“” You can use the layout function in order to have more than one histogram by page. Example: See : Histogram: Geom: bar Stat: bin Scale: linear...
Card Puncher Data Processing
R - Non-linear Effect Analysis

Non-linear Analysis with R. where: the quadratic is indicated by the power 2 (predictor1^2) As power has a meaning in this formula, the identity function (I) is used to protect it....
Ggplot Graphic Plot
ggplot - Quick Plot (qplot)

Wraps up all the details of ggplot with a familiar syntax borrowed from plot Automatically scales data Can produce any type of plot Facetting and margins Creates objects that can be saved and...

Share this page:
Follow us:
Task Runner