par中的错误,找不到对象true

时间:2018-06-08 01:57:14

标签: r

i am a starter in R, probably this is a very foolish question but please help.
x =c(rnorm(100))
y = c(rnorm(100)) ## for the graph
plot(x,col = "blue")
par(new=True) ## to superimpose the new graph on the previous
plot(y,col = "red")
why does this give an error as 
  

par(new = True)错误:object' True'找不到

2 个答案:

答案 0 :(得分:1)

如果您想在现有情节的基础上添加情节,请使用lines功能:

TEST(xxxx) {
  string s = generate_some_string();
  string filename = "tmp.txt";
  ofstream tmpFile(filename);
  tmpFile << s;
  tmpFile.close();
  cv::VideoCapture cap(filename);
  // read the content back using cap, and do some check
  remove(filename.c_str());
}

答案 1 :(得分:0)

“在所有CAPS TRUE中输入true” par(new = True)##错误 par(new = TRUE)##正确