Category Archives: R

Pie Chart with colors using R

x <-c(83,75) labels <-c(“Sai”,”Ashish”) png(file = “ashish.jpg”) pie(x,labels,main=”Test Chart”,col=rainbow(length(x))) dev.off() Advertisements

Posted in R | Leave a comment

Pie Chart using R

# Create data for the graph. x <- c(81, 62, 93, 83) labels <- c(“Ashish”, “Sai”, “Jai”, “Kai”) # Give the chart file a name. png(file = “marks.jpg”) # Plot the chart. pie(x,labels) # Save the file. dev.off()

Posted in R | Leave a comment

Print Nested List in List using R

#Lists in R list1 <-list(c(“A”,”B”,”C”),”B”) print(list1)

Posted in R, Uncategorized | Leave a comment

Print List using R

#Lists in R list1 <-list(“A”,”B”) print(list1)   How to execute code online : http://www.r-fiddle.org/

Posted in R, Uncategorized | Leave a comment

Print Using R

#This is my first R Code myString <-“Hello R” print(myString)

Posted in R, Uncategorized | Leave a comment

Vectors in R

#Create the vector students <- c(‘Ashish’,’Manas’,’Puspendu’) print(students) #Print the class print(class(students))

Posted in R, Uncategorized | Leave a comment