Plot command is very powerfull and can give you different charts based on data you use.
Basic usage of plot command:

x<-c(1:10)
y<-c(1,5,9,7,5,8,6,7,9,4)
plot(x,y)

resulting chart:

plotchart01

Some other interesting examples with my testing data sets:

Test set 1 (people) in variable “data”:


  1. plot(data$gender, data$age)

    plottest01

  2. plot(data$gender)

    plot02test01

  3. plot(data$state)

    plot03test01