Я хочу подготовить данные графика и слои AES. Но этот код не запускается
p <- ggplot(data = mov2, aes(x = Genre, y = Gross % US))
когда слои aes сняты, это работает
p <- ggplot(data = mov2)
p <- ggplot(data = mov2, aes(x = Genre, y = Gross % US)) # this code got error
v <- ggplot(data = movies, aes(x = Genre, y = CriticRating)) #this code is working
Error: unexpected input in "p<-ggplot(data=mov2, aes(x=Genre,y=Gross % US))"