Skip to content

Help Needed on plot Function

2 messages · Yao, Minghua, Andy Bunn

#
Dear all,
 
I want the title of the plot to print some parameters that change. Also, I want some spots on the plot to be labeled. Is that possible?
 
Thanks in advance for your help.
 
Minghua
#
Look at ?substitute, ?expression, and ?paste. The archives are dense
with worked examples. Here's one example of a parameter in the title:

param <- pi
plot(1:100, log(1:100))
title(substitute(hat(theta) == param, list(param=param))) 

A search of the archives for "label points plot" turns up 100s of hits.
http://cran.r-project.org/search.html

HTH, Andy