But it works ;-). According to print.trellis help, 'plot' is an alias
for 'print'.
IMO, this is an abuse of overloading: same method name does totally
different things.
On 21 April 2017 at 21:58, Jeff Newmiller wrote:
> No... it is
>
> print(plot(cop1, main = "cop1 function"))
>
> --
> Sent from
No... it is
print(plot(cop1, main = "cop1 function"))
--
Sent from my phone. Please excuse my brevity.
On April 21, 2017 1:56:00 PM PDT, George Trojan - NOAA Federal
wrote:
>I see. So, if I don't care about the plot object itself, the proper
>incantation is
>
>plot(plot(cop1, main = "cop1 fu
I see. So, if I don't care about the plot object itself, the proper
incantation is
plot(plot(cop1, main = "cop1 function"))
Thanks again.
On 21 April 2017 at 20:32, Jeff Newmiller wrote:
> Your original function created the cop1 plot object but did nothing with it.
> It then created the cop2
Your original function created the cop1 plot object but did nothing with it. It
then created the cop2 plot and returned it from the function. Since you had
invoked the cplot function from the interactive console, R printed that
returned object automatically, which displayed the plot.
FYI: when
Thanks. After changing the function to
cplot <- function(cop1, cop2) {
x11()
o <- plot(cop1, main = "cop1 function")
print(o)
x11()
o <- plot(cop2, main = "cop2 function")
print(o)
}
I see both plots. But, since "cop2 function" was plotted before, does
it mean it is plotted twice now?
FAQ 7.22
And don't send HTML email... you are the one making it difficult for us to read
your question.
--
Sent from my phone. Please excuse my brevity.
On April 21, 2017 8:27:20 AM PDT, George Trojan - NOAA Federal
wrote:
>Consider the following example:
>
>library("kdecopula")
>library("mv
6 matches
Mail list logo