我收到以下错误:
Error: geom_label requires the following missing aesthetics: label
当我运行以下脚本时:
library(tidyverse)
library(dslabs)
data("murders")
murders %>%
ggplot(aes(population, total, lavel=abb, color=region)) +
geom_label()
如何添加缺少的美感或如何解决问题?
试试这个:
library(tidyverse)
library(dslabs)
data("murders")
murders %>%
ggplot(aes(population, total, lavel=abb, color=region)) +
geom_label(aes(population, total, label=state))
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句