Note that, default log ticks are on bottom and left. P2 <- ggplot(Animals, aes(x = body, y = brain)) + geom_point() + # x and y axis are transformed and formatted Require(scales) # to access break formatting functions Require(MASS) # to access Animals data sets Create a log-log plot without log scale ticks:.Key function: annotation_logticks() Data: Animals data sets, from the package MASS Note that, log scale ticks make sense only for log scale base 10. Show exponent after the logarithmic changes by formatting axis ticks mark labels.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |