0

これが私の質問です。(x,y) ペアを線で結んだ散布図を作成したいと思います。A、B、Cの3つの治療法があります

A<-c(103.4,102.5,101.4,101.0,98.8)
B<-c(102.9,101.6,101.4,100.3,99.6)
C<-c(103.9,103.1,102.3,100.4,97.6)

これらの 3 つの変数は、y 軸 (温度) にプロットされ
ます。また、x 軸 (分) の変数もあります。

M<-c(15,30,45,60,75)

3 つの異なる処理に対して異なる線と記号を使用してプロットを作成する方法を知りたいだけです。本当にありがとう!

4

1 に答える 1

2
png()  # default file name is "Rplot001.png" in your working directory
matplot(M, cbind(A,B,C), type="b", 
        xlab= "Minutes", ylab=expression(Temperature~degree*F), 
        xlim=range(M)+c(-5,5), ylim=range(c(A,B,C)) +c(-1,1) )
dev.off()
# See ?legend and ?title for further annotation

ここに画像の説明を入力

于 2013-10-23T22:42:29.207 に答える