Calculation error in `stat_smooth ()`: object 'C_crspl' not found

I am trying to add geom_smooth()in qplot()with the following code:

library(ggplot2)
library(ggplot2movies)
qplot(votes, rating, data = movies) + geom_smooth()

However, smoothing is absent on the chart. I also get the following warning message:

Calculation error in stat_smooth(): object 'C_crspl' not found

Does anyone know what's wrong here?

This is my setup:

> sessionInfo()
R version 3.4.1 (2017-06-30)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.1 LTS
+4
source share
3 answers

I had similar problems:

# `geom_smooth()` using method = 'gam' and formula 'y ~ s(x, bs = "cs")'
# Warning message:
# Computation failed in `stat_smooth()`:
# object 'C_crspl' not found 

and

# Warning message:
# Computation failed in `stat_smooth()`:
# object 'C_magic' not found  

geom_smooth(method="gam"). , mgcv 1.8-17. -, ggplot ( 2.2.1.9000) 1.8-16, . mgcv , .

+4

: . , ggplot2. ggplot2.

, geom_smooth() , . qplot(Sepal.Length, Sepal.Width, data = iris) + geom_smooth(method = 'lm')

+2

I had the exact same problem. Tried downloading mgcvexplicitly, and it did nothing. Since I initially relied on ggplot2to install mgcv, I went back and installed myself mgcvto turn on the latest version and then install again ggplot2, and the problem disappeared. This is on Ubuntu 16.04 with ggplot22_2.2.1 and mgcv1.8-23.

+1
source

Source: https://habr.com/ru/post/1683548/


All Articles