{"id":8180,"date":"2018-11-13T08:16:34","date_gmt":"2018-11-13T06:16:34","guid":{"rendered":"https:\/\/www.datanovia.com\/en\/?p=8180"},"modified":"2019-12-25T11:19:35","modified_gmt":"2019-12-25T09:19:35","slug":"ggplot-themes-gallery","status":"publish","type":"post","link":"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/","title":{"rendered":"GGPlot Themes Gallery"},"content":{"rendered":"<div id=\"rdoc\">\n<p>In this R graphics tutorial, we present a <strong>gallery<\/strong> of <strong>ggplot themes<\/strong>.<\/p>\n<p>You\u2019ll learn how to:<\/p>\n<ul>\n<li><strong>Change the default ggplot theme<\/strong> by using the list of the standard themes available in ggplot2 R package. Our selection of best ggplot themes for professional publications or presentations, include: <em>theme_classic<\/em>(), <em>theme_minimal<\/em>() and <em>theme_bw<\/em>(). Another famous theme is the <em>dark theme<\/em>: <em>theme_dark<\/em>().<\/li>\n<li><strong>Use other helpful examples of ggplot2 themes<\/strong> available in the <strong>ggthemes<\/strong> R package. These include <em>theme_tufte<\/em>(), <em>theme_economist<\/em>() and <em>theme_hc<\/em>(). You\u2019ll also see how to create a tufte minimalist boxplot.<\/li>\n<li><strong>Modify, at once, all the theme text elements<\/strong> by specifying the ggplot base_size argument in the theme functions. Example: <code>p + theme_minimal(base_size = 18)<\/code>.<\/li>\n<li><strong>Change the theme for the entire session<\/strong> using <em>theme_set<\/em>(). For example, is you type <code>theme_set(theme_classic(base_size = 16))<\/code> in the R console, then the classic theme will be automatically applied to every plot you draw. The theme_set() function completely override the current active theme.<\/li>\n<li><strong>Create your own custom theme<\/strong>.<\/li>\n<\/ul>\n<p>Contents:<\/p>\n<div id=\"TOC\">\n<ul>\n<li><a href=\"#basic-ggplot\">Basic ggplot<\/a><\/li>\n<li><a href=\"#change-themes\">Change themes<\/a>\n<ul>\n<li><a href=\"#use-themes-in-ggplot2\">Use themes in ggplot2<\/a><\/li>\n<li><a href=\"#use-ggthemes\">Use ggthemes<\/a><\/li>\n<li><a href=\"#theme_tufte\">theme_tufte<\/a><\/li>\n<li><a href=\"#theme_economist\">theme_economist<\/a><\/li>\n<li><a href=\"#theme_stata\">theme_stata<\/a><\/li>\n<li><a href=\"#theme_hc\">theme_hc<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#override-the-current-theme-theme_set\">Override the current theme: theme_set<\/a><\/li>\n<li><a href=\"#change-ggplot-theme-base_size-and-base_family\">Change ggplot theme base_size and base_family<\/a><\/li>\n<li><a href=\"#create-a-custom-theme\">Create a custom theme<\/a><\/li>\n<li><a href=\"#conclusion\">Conclusion<\/a><\/li>\n<\/ul>\n<\/div>\n<div id=\"basic-ggplot\" class=\"section level2\">\n<h2>Basic ggplot<\/h2>\n<p>Data: <code>ToothGrowth<\/code><\/p>\n<pre class=\"r\"><code># Convert the column dose to factor variable\r\ndata(\"ToothGrowth\")\r\nToothGrowth$dose &lt;- as.factor(ToothGrowth$dose)\r\n\r\n# Create a simple boxplot\r\nlibrary(ggplot2)\r\np &lt;- ggplot(ToothGrowth, aes(x = dose, y = len)) + \r\n  geom_boxplot()<\/code><\/pre>\n<\/div>\n<div id=\"change-themes\" class=\"section level2\">\n<h2>Change themes<\/h2>\n<div id=\"use-themes-in-ggplot2\" class=\"section level3\">\n<h3>Use themes in ggplot2<\/h3>\n<p>Several simple functions are available in ggplot2 package to set easily a ggplot theme. These include:<\/p>\n<ul>\n<li><code>theme_gray()<\/code>: Gray background color and white grid lines. Put the data forward to make comparisons easy.<\/li>\n<li><code>theme_bw()<\/code>: White background and gray grid lines. May work better for presentations displayed with a projector.<\/li>\n<li><code>theme_linedraw()<\/code>: A theme with black lines of various widths on white backgrounds, reminiscent of a line drawings.<\/li>\n<li><code>theme_light()<\/code>: A theme similar to <code>theme_linedraw()<\/code> but with light grey lines and axes, to direct more attention towards the data.<\/li>\n<\/ul>\n<pre class=\"r\"><code>p + theme_gray(base_size = 14) \r\n\r\np + theme_bw()\r\n\r\np + theme_linedraw()\r\n\r\np + theme_light()<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/ggplot2\/figures\/027-ggplot-themes-gallery-theme-gray-bw-linedraw-light-1.png\" width=\"153.6\" \/><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/ggplot2\/figures\/027-ggplot-themes-gallery-theme-gray-bw-linedraw-light-2.png\" width=\"153.6\" \/><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/ggplot2\/figures\/027-ggplot-themes-gallery-theme-gray-bw-linedraw-light-3.png\" width=\"153.6\" \/><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/ggplot2\/figures\/027-ggplot-themes-gallery-theme-gray-bw-linedraw-light-4.png\" width=\"153.6\" \/><\/p>\n<ul>\n<li><code>theme_dark()<\/code>: Same as theme_light but with a dark background. Useful to make thin coloured lines pop out.<\/li>\n<li><code>theme_minimal()<\/code>: A minimal theme with no background annotations<\/li>\n<li><code>theme_classic()<\/code>: A classic theme, with x and y axis lines and no gridlines.<\/li>\n<li><code>theme_void()<\/code>: a completely empty theme, useful for plots with non-standard coordinates or for drawings.<\/li>\n<\/ul>\n<pre class=\"r\"><code>p + theme_dark() \r\n\r\np + theme_minimal()\r\n\r\np + theme_classic()\r\n\r\np + theme_void()<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/ggplot2\/figures\/027-ggplot-themes-gallery-theme-minimal-dark-classic-void-1.png\" width=\"153.6\" \/><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/ggplot2\/figures\/027-ggplot-themes-gallery-theme-minimal-dark-classic-void-2.png\" width=\"153.6\" \/><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/ggplot2\/figures\/027-ggplot-themes-gallery-theme-minimal-dark-classic-void-3.png\" width=\"153.6\" \/><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/ggplot2\/figures\/027-ggplot-themes-gallery-theme-minimal-dark-classic-void-4.png\" width=\"153.6\" \/><\/p>\n<\/div>\n<div id=\"use-ggthemes\" class=\"section level3\">\n<h3>Use ggthemes<\/h3>\n<p>The R package <code>ggthemes<\/code> provides another gallery of custom ggplot themes, which include:<\/p>\n<ul>\n<li><code>theme_tufte()<\/code>: a minimalist theme<\/li>\n<li><code>theme_economist()<\/code>: theme based on the plots in the economist magazine<\/li>\n<li><code>theme_stata()<\/code>: theme based on stata graph schemes.<\/li>\n<li><code>theme_hc()<\/code>: theme based on Highcharts JS<\/li>\n<\/ul>\n<p>To use these themes, first install and load the ggthemes package as follow :<\/p>\n<pre class=\"r\"><code>install.packages(\"ggthemes\") # Install \r\n\r\nlibrary(ggthemes) # Load<\/code><\/pre>\n<p>Then, create two basic ggplot: scatter plot and boxplot.<\/p>\n<pre class=\"r\"><code># Scatter plot\r\nsp &lt;- ggplot(mtcars, aes(wt, mpg)) +\r\n  geom_point() \r\nsp\r\n\r\n# Boxblot\r\nToothGrowth$dose &lt;- as.factor(ToothGrowth$dose)\r\nbxp &lt;- ggplot(ToothGrowth, aes(x = dose, y = len)) +\r\n  geom_boxplot(aes(fill = dose))\r\nbxp<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/ggplot2\/figures\/027-ggplot-themes-gallery-ggplot-example-1.png\" width=\"288\" \/><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/ggplot2\/figures\/027-ggplot-themes-gallery-ggplot-example-2.png\" width=\"288\" \/><\/p>\n<\/div>\n<div id=\"theme_tufte\" class=\"section level3\">\n<h3>theme_tufte<\/h3>\n<p>Key R functions:<\/p>\n<ul>\n<li>theme_tufte(): set tufte theme<\/li>\n<li>geom_tufteboxplot(): Create tufte boxplot<\/li>\n<li>geom_rangeframe(): Extend axis lines to the maximum and the minimum of the plot data<\/li>\n<\/ul>\n<p>Create a scatter plot with tufte theme:<\/p>\n<pre class=\"r\"><code>library(ggthemes)\r\nsp + geom_rangeframe() +  theme_tufte()<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/ggplot2\/figures\/027-ggplot-themes-gallery-theme_tufte-1.png\" width=\"288\" \/><\/p>\n<p>Create a tufte boxplot. The function `geom_tufteboxplot() creates several variants of Tufte\u2019s minimal-ink boxplots. The following R code, will create two types of boxplots.<\/p>\n<ol style=\"list-style-type: decimal;\">\n<li>Boxplot 1:\n<ul>\n<li>a point indicates the median,<\/li>\n<li>a gap indicates the interquartile range,<\/li>\n<li>and lines the whiskers<\/li>\n<\/ul>\n<\/li>\n<li>Boxplot 2:\n<ul>\n<li>a wide line indicates interquartile range,<\/li>\n<li>a gap indicates the median,<\/li>\n<li>and lines indicate the minimum and maximum<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<pre class=\"r\"><code>p &lt;- ggplot(ToothGrowth, aes(factor(dose), len)) +\r\n  theme_tufte(ticks = FALSE)\r\n\r\n# Box plot 1\r\np + geom_tufteboxplot()\r\n\r\n# Box plot 2\r\np + geom_tufteboxplot(median.type = \"line\", \r\n                      whisker.type = 'line',\r\n                      hoffset = 0, width = 3)<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/ggplot2\/figures\/027-ggplot-themes-gallery-tufte-boxplot-1.png\" width=\"288\" \/><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/ggplot2\/figures\/027-ggplot-themes-gallery-tufte-boxplot-2.png\" width=\"288\" \/><\/p>\n<\/div>\n<div id=\"theme_economist\" class=\"section level3\">\n<h3>theme_economist<\/h3>\n<p>Key R functions:<\/p>\n<ul>\n<li>theme_economist()<\/li>\n<li>scale_fill_economist()<\/li>\n<li>scale_color_economist()<\/li>\n<\/ul>\n<p>Create a boxplot with the economist theme:<\/p>\n<pre class=\"r\"><code>bxp + theme_economist() + scale_fill_economist()<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/ggplot2\/figures\/027-ggplot-themes-gallery-theme-economist-1.png\" width=\"288\" \/><\/p>\n<\/div>\n<div id=\"theme_stata\" class=\"section level3\">\n<h3>theme_stata<\/h3>\n<p>Key R functions:<\/p>\n<ul>\n<li>theme_stata()<\/li>\n<li>scale_fill_stata()<\/li>\n<li>scale_color_stata()<\/li>\n<\/ul>\n<pre class=\"r\"><code>bxp + theme_stata() + scale_fill_stata()<\/code><\/pre>\n<\/div>\n<div id=\"theme_hc\" class=\"section level3\">\n<h3>theme_hc<\/h3>\n<pre class=\"r\"><code>bxp + theme_hc()+ scale_colour_hc()<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/ggplot2\/figures\/027-ggplot-themes-gallery-theme_hc-1.png\" width=\"288\" \/><\/p>\n<\/div>\n<\/div>\n<div id=\"override-the-current-theme-theme_set\" class=\"section level2\">\n<h2>Override the current theme: theme_set<\/h2>\n<p>The function <code>theme_set()<\/code> can be used to change the theme for the entire session. It returns the old theme, so that we can restore it later.<\/p>\n<pre class=\"r\"><code>p &lt;- ggplot(ToothGrowth, aes(x = dose, y = len)) + \r\n  geom_boxplot()\r\n# Set theme_bw()\r\nold.theme &lt;- theme_set(theme_bw())\r\np\r\n\r\n# Restore the old theme\r\ntheme_set(old.theme)\r\np<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/ggplot2\/figures\/027-ggplot-themes-gallery-set-theme-theme_set-1.png\" width=\"288\" \/><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/ggplot2\/figures\/027-ggplot-themes-gallery-set-theme-theme_set-2.png\" width=\"288\" \/><\/p>\n<\/div>\n<div id=\"change-ggplot-theme-base_size-and-base_family\" class=\"section level2\">\n<h2>Change ggplot theme base_size and base_family<\/h2>\n<p>Note that, the theme functions can take the two arguments below :<\/p>\n<ul>\n<li>base_size: base font size (to change the size of all plot text elements)<\/li>\n<li>base_family: base font family<\/li>\n<\/ul>\n<p>For example, the size of all the plot text elements can be easily changed at once, using:<\/p>\n<pre class=\"r\"><code>p + theme_gray(base_size = 18, base_family = \"Times\")<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/ggplot2\/figures\/027-ggplot-themes-gallery-theme-font-size-1.png\" width=\"288\" \/><\/p>\n<\/div>\n<div id=\"create-a-custom-theme\" class=\"section level2\">\n<h2>Create a custom theme<\/h2>\n<p>The function <code>theme()<\/code> is used to control non-data parts of a ggplot2 graph, including<\/p>\n<ul>\n<li>Line elements: axis lines, minor and major grid lines, plot panel border, axis ticks background color, etc.<\/li>\n<li>Text elements: plot title, axis titles, legend title and text, axis tick mark labels, etc.<\/li>\n<li>Rectangle elements: plot background, panel background, legend background, etc.<\/li>\n<\/ul>\n<p>There is a specific function to modify each of these three elements :<\/p>\n<ul>\n<li><code>element_line(color, size, linetype)<\/code> to modify the line elements of the theme<\/li>\n<li><code>element_text(face, color, size, hjust, vjust, angle)<\/code> to modify the text elements<\/li>\n<li><code>element_rect(fill, color, size, linetype)<\/code> to modify the rectangle elements<\/li>\n<\/ul>\n<div class=\"warning\">\n<p>Note that, each of the theme elements can be removed using the function element_blank().<\/p>\n<\/div>\n<p>The easiest way to create a custom theme is, for example, to extract and modify the R code of the function theme_gray() or any other theme functions [theme_bw(), theme_classic(), etc].<\/p>\n<ul>\n<li>Build your theme from scrach by starting with the source code of the function <code>theme_gray()<\/code>:<\/li>\n<\/ul>\n<pre class=\"r\"><code>theme_gray\r\n\r\nfunction (base_size = 11, base_family = \"\") {\r\n  \r\n half_line &lt;- base_size\/2\r\n \r\ntheme(\r\n  ...\r\n  axis.text = element_text(size = rel(0.8), colour = \"grey30\"),\r\n  ...\r\n  )\r\n\r\n}<\/code><\/pre>\n<ul>\n<li>Create a new theme called <code>theme_bluewhite()<\/code> by starting with the source code of the function <code>theme_bw()<\/code>. We\u2019ll replace only some theme elements.<\/li>\n<\/ul>\n<pre class=\"r\"><code># Create a new theme\r\ntheme_bluewhite &lt;- function (base_size = 11, base_family = \"\") {\r\n    theme_bw() %+replace% \r\n    theme(\r\n      panel.grid.major  = element_line(color = \"white\"),\r\n      panel.background = element_rect(fill = \"lightblue\"),\r\n      panel.border = element_rect(color = \"lightblue\", fill = NA),\r\n      axis.line = element_line(color = \"lightblue\"),\r\n      axis.ticks = element_line(color = \"lightblue\"),\r\n      axis.text = element_text(color = \"steelblue\")\r\n      )\r\n}\r\n\r\n# Using our new theme\r\nggplot(ToothGrowth, aes(dose, len)) +\r\n  geom_boxplot() +\r\n  theme_bluewhite()<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/ggplot2\/figures\/027-ggplot-themes-gallery-custom-ggplot2-theme-1.png\" width=\"288\" \/><\/p>\n<\/div>\n<div id=\"conclusion\" class=\"section level2\">\n<h2>Conclusion<\/h2>\n<p>We present a list of ggplot themes to easily customize your graphs. We also describe how to create a custom ggplot theme.<\/p>\n<p>The main points as shown below.<\/p>\n<ul>\n<li>Create an example of ggplot:<\/li>\n<\/ul>\n<pre class=\"r\"><code>library(ggplot2)\r\np &lt;- ggplot(ToothGrowth, aes(x = dose, y = len)) + \r\n  geom_boxplot()<\/code><\/pre>\n<ul>\n<li>Change ggplot the background theme by using one of the following professional themes:\n<ul>\n<li>theme_bw(), theme_minimal(), theme_classic() and theme_dark() [in ggplot2 package]<\/li>\n<li>theme_tufte() and theme_economist() [in ggthemes]<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<pre class=\"r\"><code>p + theme_minimal()<\/code><\/pre>\n<\/div>\n<\/div>\n<p><!--end rdoc--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this R graphics tutorial, we present a gallery of ggplot themes. You\u2019ll learn how to: Change the default ggplot theme by using the list of the standard themes available [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":8125,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rating_form_position":"","rating_results_position":"","mr_structured_data_type":"","footnotes":""},"categories":[124],"tags":[315],"class_list":["post-8180","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ggplot2","tag-ggplot2-graphical-parameters"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>The Best GGPlot Themes You Should Know - Datanovia<\/title>\n<meta name=\"description\" content=\"We present a list of ggplot themes to easily customize your graphs. You will also learn how to create a custom ggplot theme.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The Best GGPlot Themes You Should Know - Datanovia\" \/>\n<meta property=\"og:description\" content=\"We present a list of ggplot themes to easily customize your graphs. You will also learn how to create a custom ggplot theme.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/\" \/>\n<meta property=\"og:site_name\" content=\"Datanovia\" \/>\n<meta property=\"article:published_time\" content=\"2018-11-13T06:16:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-12-25T09:19:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/11\/IMG_7059.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"512\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Alboukadel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alboukadel\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/\"},\"author\":{\"name\":\"Alboukadel\",\"@id\":\"https:\/\/www.datanovia.com\/en\/#\/schema\/person\/7767cf2bd5c91a1610c6eb53a0ff069e\"},\"headline\":\"GGPlot Themes Gallery\",\"datePublished\":\"2018-11-13T06:16:34+00:00\",\"dateModified\":\"2019-12-25T09:19:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/\"},\"wordCount\":857,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/11\/IMG_7059.jpg\",\"keywords\":[\"GGPLOT2 Graphical Parameters\"],\"articleSection\":[\"ggplot2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/\",\"url\":\"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/\",\"name\":\"The Best GGPlot Themes You Should Know - Datanovia\",\"isPartOf\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/11\/IMG_7059.jpg\",\"datePublished\":\"2018-11-13T06:16:34+00:00\",\"dateModified\":\"2019-12-25T09:19:35+00:00\",\"description\":\"We present a list of ggplot themes to easily customize your graphs. You will also learn how to create a custom ggplot theme.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/#primaryimage\",\"url\":\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/11\/IMG_7059.jpg\",\"contentUrl\":\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/11\/IMG_7059.jpg\",\"width\":1024,\"height\":512},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.datanovia.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GGPlot Themes Gallery\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.datanovia.com\/en\/#website\",\"url\":\"https:\/\/www.datanovia.com\/en\/\",\"name\":\"Datanovia\",\"description\":\"Data Mining and Statistics for Decision Support\",\"publisher\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.datanovia.com\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.datanovia.com\/en\/#organization\",\"name\":\"Datanovia\",\"url\":\"https:\/\/www.datanovia.com\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.datanovia.com\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/09\/datanovia-logo.png\",\"contentUrl\":\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/09\/datanovia-logo.png\",\"width\":98,\"height\":99,\"caption\":\"Datanovia\"},\"image\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.datanovia.com\/en\/#\/schema\/person\/7767cf2bd5c91a1610c6eb53a0ff069e\",\"name\":\"Alboukadel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.datanovia.com\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ed3108646c5c7c3d188324ab972f96ad7d9975b41b94014d7f68257791be395a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ed3108646c5c7c3d188324ab972f96ad7d9975b41b94014d7f68257791be395a?s=96&d=mm&r=g\",\"caption\":\"Alboukadel\"},\"url\":\"https:\/\/www.datanovia.com\/en\/blog\/author\/kassambara\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The Best GGPlot Themes You Should Know - Datanovia","description":"We present a list of ggplot themes to easily customize your graphs. You will also learn how to create a custom ggplot theme.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/","og_locale":"en_US","og_type":"article","og_title":"The Best GGPlot Themes You Should Know - Datanovia","og_description":"We present a list of ggplot themes to easily customize your graphs. You will also learn how to create a custom ggplot theme.","og_url":"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/","og_site_name":"Datanovia","article_published_time":"2018-11-13T06:16:34+00:00","article_modified_time":"2019-12-25T09:19:35+00:00","og_image":[{"width":1024,"height":512,"url":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/11\/IMG_7059.jpg","type":"image\/jpeg"}],"author":"Alboukadel","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Alboukadel","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/#article","isPartOf":{"@id":"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/"},"author":{"name":"Alboukadel","@id":"https:\/\/www.datanovia.com\/en\/#\/schema\/person\/7767cf2bd5c91a1610c6eb53a0ff069e"},"headline":"GGPlot Themes Gallery","datePublished":"2018-11-13T06:16:34+00:00","dateModified":"2019-12-25T09:19:35+00:00","mainEntityOfPage":{"@id":"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/"},"wordCount":857,"commentCount":3,"publisher":{"@id":"https:\/\/www.datanovia.com\/en\/#organization"},"image":{"@id":"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/#primaryimage"},"thumbnailUrl":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/11\/IMG_7059.jpg","keywords":["GGPLOT2 Graphical Parameters"],"articleSection":["ggplot2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/","url":"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/","name":"The Best GGPlot Themes You Should Know - Datanovia","isPartOf":{"@id":"https:\/\/www.datanovia.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/#primaryimage"},"image":{"@id":"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/#primaryimage"},"thumbnailUrl":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/11\/IMG_7059.jpg","datePublished":"2018-11-13T06:16:34+00:00","dateModified":"2019-12-25T09:19:35+00:00","description":"We present a list of ggplot themes to easily customize your graphs. You will also learn how to create a custom ggplot theme.","breadcrumb":{"@id":"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/#primaryimage","url":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/11\/IMG_7059.jpg","contentUrl":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/11\/IMG_7059.jpg","width":1024,"height":512},{"@type":"BreadcrumbList","@id":"https:\/\/www.datanovia.com\/en\/blog\/ggplot-themes-gallery\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.datanovia.com\/en\/"},{"@type":"ListItem","position":2,"name":"GGPlot Themes Gallery"}]},{"@type":"WebSite","@id":"https:\/\/www.datanovia.com\/en\/#website","url":"https:\/\/www.datanovia.com\/en\/","name":"Datanovia","description":"Data Mining and Statistics for Decision Support","publisher":{"@id":"https:\/\/www.datanovia.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.datanovia.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.datanovia.com\/en\/#organization","name":"Datanovia","url":"https:\/\/www.datanovia.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.datanovia.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/09\/datanovia-logo.png","contentUrl":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/09\/datanovia-logo.png","width":98,"height":99,"caption":"Datanovia"},"image":{"@id":"https:\/\/www.datanovia.com\/en\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.datanovia.com\/en\/#\/schema\/person\/7767cf2bd5c91a1610c6eb53a0ff069e","name":"Alboukadel","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.datanovia.com\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ed3108646c5c7c3d188324ab972f96ad7d9975b41b94014d7f68257791be395a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ed3108646c5c7c3d188324ab972f96ad7d9975b41b94014d7f68257791be395a?s=96&d=mm&r=g","caption":"Alboukadel"},"url":"https:\/\/www.datanovia.com\/en\/blog\/author\/kassambara\/"}]}},"multi-rating":{"mr_rating_results":[]},"_links":{"self":[{"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/posts\/8180","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/comments?post=8180"}],"version-history":[{"count":1,"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/posts\/8180\/revisions"}],"predecessor-version":[{"id":8181,"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/posts\/8180\/revisions\/8181"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/media\/8125"}],"wp:attachment":[{"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/media?parent=8180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/categories?post=8180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/tags?post=8180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}