Hi, I'm using  a function in the binom library. I'd like to add a title(s) to the plot generated by "binom.bayes.densityplot".

I get an error message when trying to use the title function
The error message is: "Error in title(main = "my plot") : plot.new has not been called yet" occurs after running the title command".

Example code:

hpdc <- binom.bayes(
x = 0:10, n = 10, type = "central", conf.level = 0.8, tol = 1e-9)
print(hpdc)
binom.bayes.densityplot(hpdc)
title(main="my plot")


I was also unsuccessful in passing a plot title to the function call.

And issuing a "plot.new()" before the title command clears the plot.

Thanks in advance for suggestions.


 
Chris Barker, Ph.D.
Adjunct Associate Professor of Biostatistics - UIC-SPH
and
President and Owner
Statistical Planning and Analysis Services, Inc.
www.barkerstats.com
415 609 7473415 609 7473 
skype: barkerstats


Call
Send SMS
Add to Skype
You'll need Skype CreditFree via Skype
	[[alternative HTML version deleted]]


