[R] Help with R plots

Weidong Gu anopheles123 at gmail.com
Thu Oct 13 04:03:10 CEST 2011


try

hist(gender$HeartRate,main='Histogram: HeartRate distribution for
Temperature Data')


Weidong Gu

On Wed, Oct 12, 2011 at 8:44 PM, Jonathan Edwin <jedwin80 at gmail.com> wrote:
> Hi all,
>
> Mind my ignorance and complete newbiness, but I am very new to R and am
> currently learning it through my stats course at university.
> My question is regarding adding titles to plots. I'll post the code below,
> and then explain my issue:
>
>> hist(gender$HeartRate)
>> title(Histogram: HeartRate distribution for Temperature Data)
>
> So what R has done, is paste over the title I entered above over the generic
> title that was already there. Does anyone know how to remove the old title
> so that only the one I want shows? Also help with editting the X and Y axis
> titles would be great!
>
> Cheers,
> Jonathan
> --
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list