You are on page 1of 2

Write an R program to create a simple bar plot of three subject’s marks, change the

border color to brown and make inside bar lines as 90 degrees.

barplot(c(80,90,95),main="Marks of
subjects",names.arg=c('phy','chem','math'),xlab='subjects',ylab='marks',border='bro
wn',density=10,angle=90)

Write a program to read a csv file and analyze the data in the file in R.

Week program.

Write an R program to draw an empty pie chart and empty plots specify the axes
limits of the graph

pie(0.1,main='Sample') #This Question doubt mam taruvata chepta annaru

Write an R program to create a simple bar plot of four subject’s registered, assign
the colors to each bar and assign the limit to x-axis as c(0,5) and y-axis as
c(0,50).

H<-c(12,22,30,45)
barplot(H,main="Marks
details",xlim=c(0,5),ylim=c(0,50),xlab='subjects',ylab='marks',col=rainbow(length(H
)),names.arg=c('phy','che','math','eng'))

Write an R program to create a simple 3D pie chart, assign color and labels to each
part.

LAB program

Write an R program to create a simple bar plot of five subject’s marks.

barplot(c(80,90,95,81,67),main="Marks of
subjects",names.arg=c('phy','chem','math','eng','tel'),xlab='subjects',ylab='marks'
)

Write an R program to create a simple pie chart of four subjects registered, assign
the colors to each block and display in anti-clockwise direction

A<-c(20,33,58,89)
pie(A,labels=c('phy','chem','eng','math'),col=rainbow(length(A)),main='Marks
List',clockwise=FALSE)

Write an R program to create a simple 3D pie chart, assign title to the chart and
also split each part.

LAB program

Write an R program to draw an empty bar plot and empty plots specify the axes
limits of the graph.

plot.new()
plot(-1,xlab="", ylab="", xlim=c(0, 20), ylim=c(0, 20))

Write an R program to create a simple pie chart of three subject’s marks, change
the border color to pink and make inside bar lines as 60 degrees.

A<-c(20,33,58,89)
pie(A,labels=c('phy','chem','eng','math'),col=rainbow(length(A)),main='Marks
List',border='pink',density=10,angle=60)

You might also like