Error in `geom_point()`: ! Problem while converting geom to grob. ℹ Error occurred in the 2nd layer. Caused by error in `coords$size * .pt`: ! non-numeric argument to binary operator Run `rlang::last_trace()` to see where the error occurred.
时间: 2024-04-28 22:21:56 浏览: 46
这是一个 R 语言中的错误信息,通常是由于代码中的某些变量类型不匹配导致的。具体来说,这个错误可能是由于一个坐标系(coords)的大小(size)变量不是数值类型导致的。你需要检查一下代码中涉及到大小变量的部分,看看是否有变量类型不正确的情况,并且确保它们是数值类型。如果你需要更多帮助,可以提供你的代码和数据集,我可以帮你找到问题所在。
相关问题
Error in `geom_point()`: ! Problem while computing aesthetics. ℹ Error occurred in the 1st layer. Caused by error in `FUN()`: ! object 'BetaDL' not found Run `rlang::last_trace()` to see where the error occurred.
这个错误提示显示在执行 `geom_point()` 函数时出现了问题,可能是由于使用了未定义的变量 `BetaDL` 导致的。需要检查一下代码中是否正确定义了 `BetaDL` 变量,或者在 `aes()` 函数中正确指定了数据框中包含 `BetaDL` 变量的列名。另外,也可以通过 `rlang::last_trace()` 函数查看详细的错误信息,以便更好地定位问题所在。
Error in `geom_point()`: ! Problem while computing aesthetics. ℹ Error occurred in the 1st layer. Caused by error in `FUN()`: ! object 'Pvalue' not found Run `rlang::last_trace()` to see where the error occurred.
这个错误是由于在计算绘图时出现了一个问题,具体是在第一层发生的。根据错误信息,可能是由于 'Pvalue' 对象未找到导致的。您可以尝试运行 `rlang::last_trace()` 来查看错误发生的位置。这将显示最近发生的错误跟踪信息,有助于确定问题的具体原因。如果您能提供更多的上下文或代码,我可以尝试给出更准确的解决方案。