# Create the data for the chart.
B <- c(73,28,41,12)
# chart file a name.
png(file = "mychart.png")
# Plot the bar chart.
barplot(B)
# Save file.
dev.off()This code snippet is for to create a bar chart in r programming language.
This code snippet is for to create a bar chart in r programming language.
# Create the data for the chart.
B <- c(73,28,41,12)
# chart file a name.
png(file = "mychart.png")
# Plot the bar chart.
barplot(B)
# Save file.
dev.off()