ggplot graphs to slow

Hi! I have a problem with ggplot2. When I use it to graph something, takes so much to do it. I don't know why that happen.
Here is an example:

> a <- seq(1,10,1)
> b <- seq(10,100,10)
> df <- data.frame(a,b)
> tictoc::tic()
> df  %>% ggplot(aes(a,b)) + geom_line()
> tictoc::toc()
24.38 sec elapsed

image

I hope you can help me with that.
Regards

Works for me.

library(ggplot2)
library(magrittr)

a <- seq(1,10,1)
b <- seq(10,100,10)
df <- data.frame(a,b)
tictoc::tic()
df %>% ggplot(aes(a,b)) + geom_line()

tictoc::toc()
#> 0.1 sec elapsed

Created on 2019-09-13 by the reprex package (v0.3.0)

I also can't reproduce this. Are you running this in a fresh R session?

Some system Information could be useful as well

#### System Information:
- RStudio Edition: (Desktop or Server)
- RStudio Version: 
- OS Version: 
- R Version: 

Thanks for your support. I just reset my computer and after some trials started to work fine.
I realized also that, maybe, the ethernet line which I was connect could case the problem.
Now, It works normally.
Thanks for your concerns.
Regards.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.