小编Che*_*hen的帖子

如何在ggplot中更改标签(图例)?

我的代码如下,我想更改ggplot的标签,但R总是提醒我:

Error in unit(tic_pos.c, "mm") : 'x' and 'units' must have length > 0
Run Code Online (Sandbox Code Playgroud)

我该怎么办?

ggplot(mat,aes(x=sales,col=type))+
  geom_density()+labels("red_sold","blue_sold","yellow_sold")
Run Code Online (Sandbox Code Playgroud)

math statistics plot r ggplot2

1
推荐指数
2
解决办法
5770
查看次数

标签 统计

ggplot2 ×1

math ×1

plot ×1

r ×1

statistics ×1