本文分享下面gif图中的实现R语言代码。
目录
1、时间序列图某段时间添加面积图(Areas Under a Time Series)
2、两个时间序列图之间添加面积图(Areas Between Two Time Series)
3、柱状时间序列图(Column Chart for Developments)
4、柱状时间序列图标记增长部分(Column Chart with Percentages for Growth Developments)
5、按天时间序列图(Daily Values with Labels)
6、标记时间序列图中的缺省值(Time Series with Missing Values)
7、时间序列柱状图中季度值为列(Quarterly Values as Columns)
8、时间序列线状图中季度值为列(Quarterly Values as Lines with Value Labels)
10、时间序列分面季度图(Seasonal Ranges (Panel))
11、时间序列堆积季度图(Seasonal Ranges Stacked)
12、带月标签的时间序列图(Monthly Values with Monthly Labels (Layout))
13、时间序列堆积面积图(Time Series with Stacked Areas)
14、时间序列分面图(Time Series with Trend (Panel))
18、简化的甘特图(Simplified Gantt Chart)
20、Table with Symbols of the “Symbol Signs” Type Face
22、树状图填充色随面积大小变化(Tree Map changing with size)
23、散点图-3(Scatter Plot Variant 3: Areas Highlighted)
24、散点图-5(Scatter Plot Variant 5: Connected Points)
25、散点图-2(Scatter Plot Variant 2: Outliers Highlighted)
26、用户定义符号的散点图(Scatter Plot With User-Defined Symbols)
27、点少的散点图(Scatter Plot with Few Points) 28、Scatter Plot Gapminder
29、饼图标签内置、分面(Pie Charts, Labels Inside (Panel))
30、半个饼图(Seat Distribution (Panel))
33、分面雷达图(Radial Polygons (Panel))
37、网络图(networks_directed_network)
40、 比较堆积柱状图-1(Comparison with Bar Chart)
41、比较堆积柱状图-2(Comparison with Bar Chart)
42、比较分面柱状图(Comparison with Bar Chart)
。。。。
1、时间序列图某段时间添加面积图(Areas Under a Time Series)
library(gdata)
par(cex.axis=1.1,mai=c(0.75,1.5,0.25,0.5),omi=c(0.5,0.5,1.1,0.5), mgp=c(6,1,0),family="Lato Light",las=1)