请问大神 如何 改横坐标的日期显示??? 图片出来的横坐标显示为 1993 1994 1995 1996这样的 一直到2018
非常感谢!
我的日期格式不是date 而是factor
我写了
scale_x_discrete(limits=c("1993","2018"),breaks=seq(1993,2018,1))
但是 图片显示根本没变呀
结果框出来了一些东西。。。
<ggproto object: Class ScaleDiscretePosition, ScaleDiscrete, Scale>
aesthetics: x xmin xmax xend
axis_order: function
break_info: function
break_positions: function
breaks: 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2 ...
call: call
clone: function
dimension: function
drop: TRUE
expand: waiver
get_breaks: function
get_breaks_minor: function
get_labels: function
get_limits: function
guide: none
is_discrete: function
is_empty: function
labels: waiver
limits: 1993 2018
make_sec_title: function
make_title: function
map: function
map_df: function
n.breaks.cache: NULL
na.translate: TRUE
na.value: NA
name: waiver
palette: function
palette.cache: NULL
position: bottom
range: <ggproto object: Class RangeDiscrete, Range>
range: NULL
reset: function
train: function
super: <ggproto object: Class RangeDiscrete, Range>
range_c: <ggproto object: Class RangeContinuous, Range>
range: NULL
reset: function
train: function
super: <ggproto object: Class RangeContinuous, Range>
reset: function
scale_name: position_d
train: function
train_df: function
transform: function
transform_df: function
super: <ggproto object: Class ScaleDiscretePosition, ScaleDiscrete, Scale>
不懂 这些显示 有啥用
数据长这样: