
learningrbasic.blogspot.com
Learning RUsing vectors to customize placement of tick marks and labels on a plot. Wednesday, March 24, 2010. OK, let's say you want to create a plot and you need an easy way to specify where along the scale your tick marks and labels land, as opposed to having R just decide itself. An easy way to do that is to create a vector and assign the axis characteristics tio the vector (or vice versa, depending on how you look at it.). First, let's create some data to plot:. A - c(12,4,56,4,65,7,19,25,40,12). Plot (a, b).
http://learningrbasic.blogspot.com/