Skip to content

Instantly share code, notes, and snippets.

@uribo
Last active October 30, 2015 21:07
Show Gist options
  • Save uribo/8781f0377c0b8fccde3e to your computer and use it in GitHub Desktop.
Save uribo/8781f0377c0b8fccde3e to your computer and use it in GitHub Desktop.
R source code with emoji
# 🔧_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)
# 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)
@wangyuchen
Copy link

It's so interesting! May I ask how did you do it? Are you able to plot them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment