我在用科比投篮数据作图时出现了这个问题:

Error in `check_required_aesthetics()`:
! geom_point requires the following missing aesthetics: y
Run `rlang::last_error()` to see where the error occurred.

ggplot2_Error:geom_point 需要以下缺失的美学:y

经过查询发现可能时y列数据不是数值型导致的,于是我去把数据类型改成数值型了后图果然出来了。

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐