# Create the data for the chart.
G<- c(3,12,28,7,41)
MO <- c("jan","may","aug","Jun","Jul")
# chart file a name.
png(file = "myrevenue.png")
# Plot the bar chart.
barplot(G,names.arg = MO,xlab = "Month",ylab = "Revenue",col = "blue",
main = "Revenue chart",border = "red")
#Save file into dicrecory.
dev.off()In this code snippet we create bar chart with colour and title.
