gpt4 book ai didi

r - 图形错误 : Don't know how to automatically pick scale

转载 作者:行者123 更新时间:2023-12-04 11:59:09 27 4
gpt4 key购买 nike

<分区>

当我尝试使用 ggplot 创建 nycflights13 的关系图时,它显示以下错误,有人可以帮我弄清楚吗?

library(ggplot2)
library(nycflights13)

data=flights

mutate(data,
delay=arr_delay - dep_delay)

p1 <- ggplot(data,aes(x=dist,y=delay))+
geom_point(aes(color=count,size=count),alpha=1/2)+
xlab("Distance")+
ylab("delay")+
ggtitle("Distance vs. Delay")+
geom_smooth()+
scale_size_area()

p1

错误:

Don't know how to automatically pick scale for object of type function. 
Defaulting to continuous.

Don't know how to automatically pick scale for the object of type function.
Defaulting to continuous.

Don't know how to automatically pick scale for object of type tbl_df/tbl/data.frame. Defaulting to continuous.

Error: Aesthetics must be either length 1 or the same as the data (336776): colour, size, x, y

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com