2017-04-03 13 views
-1

こんにちは私は次の行の凡例を作成したいと思いますが、どうすればよいか分かりません。Rをプロットする凡例を追加する

lines1<- lines(salesARIMAPredict$pred, lty = 5, col = "Blue") 
lines(salesARIMAPredict$pred+2*salesARIMAPredict$se, col = "Red") #Confidence Interval of 95% 
lines(salesARIMAPredict$pred-2*salesARIMAPredict$se, col = "Red") 

See Attached

あなたが質問をする前に、いくつかの基本的な研究を行う必要があり、多くのおかげでサイフ

+0

投稿のコード行を4つのスペースでインデントすることで、コード行の書式を設定します。 – JanLauGe

答えて

-1

:私はこの単純な例を作成し、あなたのために

https://stat.ethz.ch/R-manual/R-devel/library/graphics/html/legend.html

編集を

ts.plot(ldeaths) 
lines(ldeaths+100, col ="red") 
legend("top", c("ldeaths", "+100"), col = c("black", "red"), lty = 1) 
+1

[リンクは素晴らしいですが、回答は唯一の情報ではありません。]](https://meta.stackexchange.com/questions/8231/are-answers-that-just-contain-links-elsewhere -really-good-answers) – Therkel

+0

@Saif私は答えを編集しました、それを見てください – minem

関連する問題