Create bar plot with logarithmic scale in R
问题 I am trying to create a bar plot with a logarithmic scale as my data varies from 3.92 to 65700. This is the code i have used so far: beach <- c(PlasticsBlue=3.92, PlasticsGrey=65700, FoamsOrange=17.9, FoamsWhite=51300, RopesGreen=9.71, RopesGreen=3140) beach par(mar = c(10, 5, 10, 5)) barplot(beach, names.arg=c("Plastics/Blue", "Plastics/Grey", "Foams/Orange", "Foams/White", "Ropes/Green", "Ropes/Green"), col=c("red2", "slateblue4", "red2", "slateblue4", "red2", "slateblue4", "red2"), legend