全部。
我在 stackoverflow 上阅读了几条之前的消息,并浏览了 zoo 和 ggplot2 的文档,但没有找到任何合适的答案。
假设我有一个名为“数据”的动物园对象。平面文件中的原始数据如下:
Date,Quote1,Quote2,Quote3,Quote4,Quote5
18/07/2008,42.36,44.53,28.4302,44.3,42
21/07/2008,43.14,44.87,28.6186,44.83,43.27
22/07/2008,43.26,44.85,28.6056,44.86,42.84
23/07/2008,44.74,45.61,29.7558,45.69,#N/A
24/07/2008,43.99,45.14,29.2944,45.19,#N/A
25/07/2008,43.18,45.33,29.4569,45.46,43.65
28/07/2008,43.45,44.72,28.5016,44.89,43.31
29/07/2008,43.49,44.8,28.1247,44.88,42.85
30/07/2008,44.55,45.54,28.0727,45.58,43.67
31/07/2008,43.36,45.5,27.9818,45.63,43.91
01/08/2008,43.34,44.75,28.0792,44.69,43.04
现在,我想在一个折线图上绘制这五种金融产品的时间序列,以便比较它们的演变。
我希望使用ggplot2。
有人愿意给我一些提示吗?