最后一个问题。由于您的代码比较复杂,我一下子也学不会。我现在仿照您第一次回答我的那段代码,没有用tidyverse的包,而仅仅用ggplot2,采用以下代码
ggplot(dat)+geom_tile(aes(x=type,y=year,fill=death))
+ylim(c(2001,2014.5))
+annotate("text",x="e1",y=2004:2013,label=as.character(2004:2013))
+labs(x=NULL,y=NULL)+coord_polar()+theme_classic()
+theme(axis.line=element_blank(),axis.text.y=element_blank(),axis.ticks=element_blank())
+coord_polar(theta="x")
+scale_fill_gradient(high="#F77400",low="yellow",na.value="green")
得到的图形是歪的(我指的是年份那一圈缺刻)。请问,仅就我这一段代码而言,修改哪个地方,能使其扶正?