Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/69.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R 书写条(变量)_R_Legend - Fatal编程技术网

R 书写条(变量)

R 书写条(变量),r,legend,R,Legend,以下工作与R中的预期一样。它显示P@1,上面有一条线 bquote(~bar("P@"~1)) 我没有固定1,而是有一个变量N。我怎么能把电话接过来P@N,其中N有一个赋值 以下操作不起作用: N <- 1 bquote(~bar("P@"~N)) N试试这个: bquote(~bar("P@"~.(N))) 试试这个: bquote(~bar("P@"~.(N))) 正是我需要的。谢谢!正是我需要的。谢谢!

以下工作与R中的预期一样。它显示P@1,上面有一条线

bquote(~bar("P@"~1))
我没有固定1,而是有一个变量
N
。我怎么能把电话接过来P@N,其中N有一个赋值

以下操作不起作用:

N <- 1
bquote(~bar("P@"~N))
N试试这个:

bquote(~bar("P@"~.(N)))
试试这个:

bquote(~bar("P@"~.(N)))

正是我需要的。谢谢!正是我需要的。谢谢!