gpt4 book ai didi

r - 图形的图案填充

转载 作者:行者123 更新时间:2023-12-04 02:25:26 25 4
gpt4 key购买 nike

ggplot2生成漂亮的彩色图形,但有时需要使用 pattern fills 来制作黑白图形。 .我想知道如何在 ggplot2 中做到这一点,说这段代码:

ggplot(diamonds, aes(cut, fill=cut)) + geom_bar()

编辑
R中是否有任何功能?为图形做图案填充?

最佳答案

看看 example(barplot) 的第 6 个图。

关于r - 图形的图案填充,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7604785/

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