2017-08-14 119 views
0

在电力BI基于R可视化的R功率BI:在plot.window错误(...):需要有限“XLIM价值观

错误:

Stack Trace: 
Microsoft.PowerBI.ExploreServiceCommon.ScriptHandlerException: R script error. 
Error in plot.window(...) : need finite 'xlim' values 
Calls: plot -> plot.default -> localWindow -> plot.window 
In addition: Warning messages: 
1: In min(x) : no non-missing arguments to min; returning Inf 
2: In max(x) : no non-missing arguments to max; returning -Inf 
3: In min(x) : no non-missing arguments to min; returning Inf 
4: In max(x) : no non-missing arguments to max; returning -Inf 
Execution halted 
---> Microsoft.PowerBI.Radio.RScriptRuntimeException: R script error. 
Error in plot.window(...) : need finite 'xlim' values 
Calls: plot -> plot.default -> localWindow -> plot.window 
In addition: Warning messages: 
1: In min(x) : no non-missing arguments to min; returning Inf 
2: In max(x) : no non-missing arguments to max; returning -Inf 
3: In min(x) : no non-missing arguments to min; returning Inf 
4: In max(x) : no non-missing arguments to max; returning -Inf 
Execution halted 

我m只有当我尝试子集我的数据时才会出现上述错误。

从阅读其他类似的问题我检查了我的数据类型,他们分别是整数和双。

我也使用any(is.na(dataset))检查了数据中的NA值,它表明没有NA值。

当我把xlimylim值,我的情节变成空白。

代码:

dataset <- dataset[dataset$Column1=="T1",] #Subset of data I want. All rows where Column1 is equal to T1. 

x <- as.numeric(dataset$`Height`) # Integer 
y <- as.numeric(dataset$`Pct Pop`) # Double 
plot(x, y, 
xlim = c(0, 45000), 
ylim = c(0, 1.5) 
) 

回答

0

我加入,我想过滤器使用双向电力滤波方法,而不是试图创建我的数据的子集,就像你通常会在R.为了完成固定此错误这个,点击你的图表,在右下角你会看到一个名为“Filters”的部分,你可以在其中添加你的列和约束。