Last active
October 30, 2015 21:07
-
-
Save uribo/8781f0377c0b8fccde3e to your computer and use it in GitHub Desktop.
R source code with emoji
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 🔧_option | |
theme_set(theme_classic(base_size = 18, base_family = "Helvetica")) | |
# 📦_using_packages | |
library("dplyr", warn.conflicts = FALSE) # 🚧 avoid package conflict | |
library("ggplot2") | |
library("magrittr") | |
# ⭐_setup | |
df <- iris %>% filter(Sepal.Width < mean(Sepal.Width), Petal.Width < mean(Petal.Width)) | |
# 🎨_plot | |
p1 <- ggplot(df, aes(Sepal.Width, Petal.Width, colour = Species)) + geom_point() | |
#_👻 ggsave("plot.png", p1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# option | |
theme_set(theme_classic(base_size = 18, base_family = "Helvetica")) | |
# using_packages | |
library("dplyr", warn.conflicts = FALSE) # avoid package conflict | |
library("ggplot2") | |
library("magrittr") | |
# setup | |
df <- iris %>% filter(Sepal.Width < mean(Sepal.Width), Petal.Width < mean(Petal.Width)) | |
# plot | |
p1 <- ggplot(df, aes(Sepal.Width, Petal.Width, colour = Species)) + geom_point() | |
# ggsave("plot.png", p1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's so interesting! May I ask how did you do it? Are you able to plot them?