小编twi*_*ire的帖子

geom_text位置在条形图中间

需要帮助对齐条形图上的标签.

这是可重现的代码:

library(ggmap)
library(ggplot2)
library(gganimate)
library(readxl)
library(animation)

mydf1<-structure(list(year = c(1994, 1995, 1997, 1997, 1998, 1998, 2000, 
2000, 2001, 2001, 2002, 2002, 2004, 2005, 2005, 2006, 2006, 2007, 
2007, 2008, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2015, 
2016, 2016, 2016, 2016), N = c(3L, 1L, 1L, 4L, 1L, 4L, 1L, 2L, 
1L, 5L, 1L, 2L, 1L, 1L, 4L, 1L, 3L, 1L, 2L, 1L, 5L, 2L, 2L, 6L, 
4L, 1L, 1L, 2L, 1L, 1L, 3L, 4L, 1L), channels = c(86, …
Run Code Online (Sandbox Code Playgroud)

r bar-chart ggplot2 stackedbarseries

0
推荐指数
1
解决办法
5586
查看次数

标签 统计

bar-chart ×1

ggplot2 ×1

r ×1

stackedbarseries ×1