2017-10-21 20 views
-1

J'ai problème bizarre avec ggplot simple,je simple erreur avec ggplot2

> library(ggplot2) 
> ggpolt(mpg, aes(displ, hwy, col = class))+ 
    geom_point() 
Error in ggpolt(mpg, aes(displ, hwy, col = class)) : 
    could not find function "ggpolt" 

J'ai aussi essayé, mais je suis arrivé autre erreur

> ggplot2::ggpolt(mpg, aes(displ, hwy, col = class))+ 
    geom_point() 
Error: 'ggpolt' is not an exported object from 'namespace:ggplot2' 
+1

'ggpolt'? vérifie ton orthographe ... – r2evans

Répondre

2

Je voudrais simplement commenter cela, mais ne pas avoir le représentant encore ... semble que la seule chose qui ne va pas, c'est que vous avez mal orthographié ggplot :-).

ggplot(mpg, aes(displ, hwy, col = class)) + geom_point() 

Doit faire l'affaire!