Dear Ista,
Thank you so much for the prompt reply. Yes, using the annotate instead of
the geom_text definitely speed up my graph and look much better.
Thanks.
Best Regards,
Janesh Devkota
On Mon, Jan 21, 2013 at 3:46 PM, Ista Zahn wrote:
> Hi,
>
> One problem is that you are printing the reg
Hi,
One problem is that you are printing the regression equation multiple
times. Compare:
> system.time({
+ p2 <- p1 + annotate(x = -0.1, y = 0.5, geom="text", label =
lm_eqn(mydata), parse = TRUE)
+ print(p2)
+ })
user system elapsed
0.930 0.006 0.976
> system.time({
+ p3 <- p1
2 matches
Mail list logo