Nothing
## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.width = 6,
fig.height = 6
)
## ----setup, message = FALSE---------------------------------------------------
library(gameR)
library(ggplot2)
library(magrittr)
library(palmerpenguins)
data("penguins")
## ----warning = FALSE----------------------------------------------------------
penguins %>%
ggplot(aes(x = body_mass_g, y = flipper_length_mm, color = species)) +
geom_point() +
theme_bw() +
ggtitle("ggplot example using the 'rayman' palette") +
scale_color_manual(values = gameR_cols("rayman"))
## -----------------------------------------------------------------------------
par(bg = "white")
attach(penguins)
plot(
x = body_mass_g,
y = flipper_length_mm,
main = "Base R example using the 'cyberpunk' palette",
cex = 1,
pch = 21,
bg = gameR_cols("cyberpunk")[unclass(species)]
)
legend(5500, 200,
legend = attr(unclass(species), "levels"),
fill = gameR_cols("cyberpunk"), cex = 0.8
)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.