Title Use Image in 'ggplot2' Version 0.0.7 Package ggimage November 1, 2017 Supports image files and graphic objects to be visualized in 'ggplot2' graphic system. Depends R (>= 3.3.0), ggplot2 Imports grid, gridgraphics, magick, methods, rvcheck, scales, tibble Suggests knitr, prettydoc VignetteBuilder knitr ByteCompile true License Artistic-2.0 URL https://github.com/guangchuangyu/ggimage BugReports https://github.com/guangchuangyu/ggimage/issues Encoding UTF-8 LazyData true RoxygenNote 6.0.1 NeedsCompilation no Author Guangchuang Yu [aut, cre] (0000-0002-6485-8781) Maintainer Guangchuang Yu <guangchuangyu@gmail.com> Repository CRAN Date/Publication 2017-11-01 07:39:45 UTC R topics documented: geom_emoji......................................... 2 geom_flag.......................................... 3 geom_icon.......................................... 3 geom_image......................................... 4 geom_phylopic....................................... 5 geom_pokemon....................................... 6 1
2 geom_emoji geom_subview....................................... 6 list.flag........................................... 7 list.icon........................................... 8 list.pokemon......................................... 8 theme_transparent...................................... 9 Index 10 geom_emoji geom_emoji geom layer for using emoji image geom_emoji(mapping = NULL, = NULL, inherit.aes = TRUE, = FALSE, = "width",...) mapping aes mapping inherit.aes whether inherit aes mapping from ggplot() whether remove NA values one of width or height for specifying size... additional parameter ggplot2 layer
geom_flag 3 geom_flag geom_flag geom layer for using flag image geom_flag(mapping = NULL, = NULL, inherit.aes = TRUE, = FALSE, = "width",...) mapping aes mapping inherit.aes whether inherit aes mapping from ggplot() whether remove NA values one of width or height for specifying size... additional parameter ggplot2 layer geom_icon geom_icon geom layer for using icon geom_icon(mapping = NULL, = NULL, inherit.aes = TRUE, = FALSE, = "width",...)
4 geom_image mapping aes mapping inherit.aes whether inherit aes mapping from ggplot() whether remove NA values one of width or height for specifying size... additional parameter ggplot2 layer geom_image geom_image geom layer for visualizing image files geom_image(mapping = NULL, = NULL, stat = "identity", position = "identity", inherit.aes = TRUE, = FALSE, = "width", color = NULL,...) mapping stat position inherit.aes color aes mapping stat position logical, whether inherit aes from ggplot() logical, whether remove NA values one of width or height specify the color of image. NULL for original color... additional parameters geom layer
geom_phylopic 5 Examples library("ggplot2") library("ggimage") set.seed(2017-02-21) d <-.frame(x = rnorm(10), y = rnorm(10), image = sample(c("https://www.r-project.org/logo/rlogo.png", "https://jeroenooms.github.io/images/frink.png"), size=10, replace = TRUE) ) ggplot(d, aes(x, y)) + geom_image(aes(image=image)) geom_phylopic geom_phylopic geom layer for using phylopic image geom_phylopic(mapping = NULL, = NULL, inherit.aes = TRUE, = FALSE, = "width", height = 512,...) mapping inherit.aes height aes mapping whether inherit aes mapping from ggplot() whether remove NA values one of width or height for specifying size size ( height) of phylopic image to be used... additional parameter ggplot2 layer
6 geom_subview geom_pokemon geom_pokemon geom layer for using pokemon image geom_pokemon(mapping = NULL, = NULL, inherit.aes = TRUE, = FALSE, = "width",...) mapping aes mapping inherit.aes whether inherit aes mapping from ggplot() whether remove NA values one of width or height for specifying size... additional parameter ggplot2 layer geom_subview geom_subview subview geom geom_subview(subview, x, y, width = 0.1, height = 0.1)
list.flag 7 subview x y width height subview x position y position width height layer list.flag list.flag list available flag list.flag() flag vector
8 list.pokemon list.icon list.icon list available icon list.icon() icon vector list.pokemon list.pokemon list available pokemon list.pokemon() pokemon vector
theme_transparent 9 theme_transparent theme_transparent transparent background theme theme_transparent(...)... additional parameter to tweak the theme ggplot object Guangchuang Yu with contributions from Hugo Gruson
Index geom_emoji, 2 geom_flag, 3 geom_icon, 3 geom_image, 4 geom_phylopic, 5 geom_pokemon, 6 geom_subview, 6 list.flag, 7 list.icon, 8 list.pokemon, 8 theme_transparent, 9 10