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]]
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. >
All complete newbies should read the posting guide referenced at the bottom of every message. One of the rules mentioned there is that this is not the appropriate venue for homework questions, since you have an instructor to get you up to speed. When you finish the course and are familiar with the posting guide, we will still be here, and you won't need to apologize for being a newbie. Tips: use the question mark shortcut to get help on functions, and read the "Introduction to R" pdf carefully. --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnewmil@dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --------------------------------------------------------------------------- Sent from my phone. Please excuse my brevity. Jonathan Edwin <jedwin80@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@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. [[alternative HTML version deleted]]