r ggplot的助手

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了r ggplot的助手相关的知识,希望对你有一定的参考价值。

Ces gists regroupent les problemes et solutions rencontres sur ggplot2

Sommaire :

- Gestion de la bordure des geom_point() : 01_geom_point_borders.R
# Faire la bordures des points avec geom_point()

# Comme expliqué ici (https://stackoverflow.com/questions/15965870/fill-and-border-colour-in-geom-point-scale-colour-manual-in-ggplot)
# SEULEMENT les formes (shape) de 21 à 25 ont les proprietés colour & fill !

# Exemple qui ne marche pas (car le shape par défault est 16 !)
ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width)) +
  geom_point(aes(fill = Species), colour = "black")

# Exemple qui fonctionne
ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width)) +
  geom_point(aes(fill = Species), colour = "black", shape = 21)

以上是关于r ggplot的助手的主要内容,如果未能解决你的问题,请参考以下文章

R语言之ggplot

【R】ggplot2绘图技巧

在 R 错误中使用 ggplot 函数:找不到函数 ggplot

R语言ggplot2绘图单元格为方块的热图简单小例子

R语言可视化R原生plot函数与ggplot可视化结果组合整合输出实战:原生R绘图plot函数可视化ggplot2包可视化R原生plot函数与ggplot可视化结果组合

R 绘图 ggplot png 所支持的最大图片背景与res的关系