Re: [R] A Labeling the median

2020-12-29 Thread Jim Lemon
Hi Greg, I think what you want is: mtext (side=4, "median", col="firebrick4", at=median(walk_seconds)) "adj" defaults to 0.5 and is usually okay. It looks to me as though mtext has taken your _character_ strings as non-numeric and then tried to work something out with par("las"). Experts more fa

[R] A Labeling the median

2020-12-29 Thread Gregory Coats via R-help
After calling plot, I draw a horizontal line representing the median with aline. abline (h=median(walk_seconds), lty=1, lwd=2.0, col="firebrick4") Then, I want to label that line as the median and do so by calling mtext. mtext (side=4, "median", col="firebrick4", adj=“0.50”) The dilemma is I do no