2016-07-03 12 views
0

私のアプリケーションを実行している間、Rは私にfuntion scale_colour_tableauが見つかりませんでした。Rはscale_colour_tableau関数を見つけることができません

私はgスタジオ経由でggplot2とshinyをインストールしました。

server.R

shinyServer(function(input, output) { 

output$exPlot<-renderPlot({ 

ggplot(data=MP,aes(x=year,y=Gprice,fill=Cprice,xmax=100,ymax=100))+geom_bar(width=1,stat="identity")+ggtitle(expression(atop("Market Analysis",atop("")))) +theme(plot.title=element_text(size=20)) +theme_gray()+scale_colour_tableau()}, height = 600, width = 900) 



output$exPlot2<-renderPlot({ 

ggplot(data=PI,aes(x=Type,y=DemandIndex,fill=Type,xmax=100,ymax=100))+geom_bar(width=1,stat="identity")+coord_polar(theta = "x")+ggtitle(expression(atop("Radar Analysis",atop("let’s have fun"))))+theme(plot.title=element_text(size=20))+theme_gray()+scale_colour_tableau()}, height = 600, width = 900) 

    }) 

Rスタジオのバージョンに占有エラーが0.99.902

Rのバージョンである `scale_colour_tableau`は` ggplot2` 3.3.0

+0

ではありません関数。 – lmo

答えて

1
if(!require("pacman")) install.packages("pacman") 
pacman::p_load(ggthemes) 
+1

ありがとう: – Naxe

関連する問題