I am trying to use ggplot2 to create a boxplot graph but I am having trouble getting the ticks to show up as it does in the examples of the ggplot2 webiste.
Here is some fake data of tastiness of fruits:
apples <- data.frame(fruit=c(rep("apple", 30)), taste=runif(30, 30, 50)
banana <- data.frame(fruit=c(rep("banana", 30)), taste=runif(30, 300, 500))
orange <- data.frame(fruit=c(rep("orange", 30)), taste=runif(30, 3000, 5000))
fruits <- rbind(apples,banana,orange)
If I plot as in the ggplot2 website example the y-axis scale should looks something like:
Instead I get an axis like:
ggplot(fruits, aes(fruit, taste) ) + geom_boxplot() + scale_y_log10()
How would I get the y-axis scale on scientific notation?