Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/71.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 plot.window(…)中出错:需要有限的';xlim&x27;绘图中的值_R_Plot - Fatal编程技术网

R plot.window(…)中出错:需要有限的';xlim&x27;绘图中的值

R plot.window(…)中出错:需要有限的';xlim&x27;绘图中的值,r,plot,R,Plot,输入数据: # A tibble: 11 × 2 TESTCELL_CONTENT Conversion <chr> <dbl> 1 PRGRS_00_00215_Recipe:Classic Chicken Pot Pie 2 2

输入数据:

# A tibble: 11 × 2
                                       TESTCELL_CONTENT Conversion
                                                  <chr>      <dbl>
1         PRGRS_00_00215_Recipe:Classic Chicken Pot Pie          2
2            PRGRS_00_00215_Recipe:Smothered Pork Chops          6
3      PBCRS_00_00215_Recipe:Easy Crescent Veggie Pizza          2
4  PRGRS_00_00215_Recipe:Cheesy Potato Slow-Cooker Soup          2
5              PRGRS_00_00211_Recipe:Loaded Potato Soup          3
6              PBSWT_00_00215_Recipe:Apple Pie Cupcakes          4
7              PRGRS_00_00215_Recipe:Loaded Potato Soup          4
8                 PRGRS_00_00215_Recipe:Chicken Marsala          5
9        PRGRS_00_00215_Recipe:Slow-Cooker Lasagna Soup          4
10                PBCRS_00_00215_Recipe:Pizza Pinwheels          2
11           PBCRS_00_00215_Recipe:Raspberry Baked Brie          3
我得到这个错误: plot.window(…)中出错:需要有限的“xlim”值


我检查了“na”和缺少的值。我限制了11条数据完整的记录,但仍然得到了错误。帮助?

将您的角色转换为因子,您就可以这样做了

input$TESTCELL_CONTENT = factor(input$TESTCELL_CONTENT)

如果这是一个数据帧而不是“TIBLE”,同样适用。将您的角色转换为因子,您就可以这样做

input$TESTCELL_CONTENT = factor(input$TESTCELL_CONTENT)

如果这是一个数据帧而不是“TIBLE”,则同样适用。

您要绘制什么?字符串与数字?您确定不想先将其制表或汇总?您想绘制什么?字符串与数字?您确定不想先将其制表或汇总吗?