651 lines
127 KiB
HTML
651 lines
127 KiB
HTML
|
|
<!DOCTYPE HTML>
|
||
|
|
<html class="" lang="en-US">
|
||
|
|
<head>
|
||
|
|
<meta charset="UTF-8">
|
||
|
|
|
||
|
|
<script>
|
||
|
|
(function(w, d) {
|
||
|
|
w.adthrive = w.adthrive || {};
|
||
|
|
w.adthrive.cmd = w.adthrive.cmd || [];
|
||
|
|
w.adthrive.plugin = 'adthrive-ads-1.0.41';
|
||
|
|
w.adthrive.host = 'ads.adthrive.com';
|
||
|
|
|
||
|
|
var s = d.createElement('script');
|
||
|
|
s.async = true;
|
||
|
|
s.referrerpolicy='no-referrer-when-downgrade';
|
||
|
|
s.src = 'https://' + w.adthrive.host + '/sites/5f4797213b647d722951e6e6/ads.min.js?referrer=' + w.encodeURIComponent(w.location.href);
|
||
|
|
var n = d.getElementsByTagName('script')[0];
|
||
|
|
n.parentNode.insertBefore(s, n);
|
||
|
|
})(window, document);
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<!-- This site is optimized with the Yoast SEO plugin v15.2 - https://yoast.com/wordpress/plugins/seo/ -->
|
||
|
|
<title>Change Font Size of ggplot2 Plot in R | Axis Text, Main Title & Legend</title>
|
||
|
|
<meta name="description" content="How to modify font sizes of ggplot2 graphics in R - 5 programming examples - Change font size of axes, main title & legend - Reproducible R code" />
|
||
|
|
<meta name="robots" content="index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1" />
|
||
|
|
<link rel="canonical" href="https://statisticsglobe.com/change-font-size-of-ggplot2-plot-in-r-axis-text-main-title-legend/" />
|
||
|
|
<meta property="og:locale" content="en_US" />
|
||
|
|
<meta property="og:type" content="article" />
|
||
|
|
<meta property="og:title" content="Change Font Size of ggplot2 Plot in R | Axis Text, Main Title & Legend" />
|
||
|
|
<meta property="og:description" content="How to modify font sizes of ggplot2 graphics in R - 5 programming examples - Change font size of axes, main title & legend - Reproducible R code" />
|
||
|
|
<meta property="og:url" content="https://statisticsglobe.com/change-font-size-of-ggplot2-plot-in-r-axis-text-main-title-legend/" />
|
||
|
|
<meta property="og:site_name" content="Statistics Globe" />
|
||
|
|
<meta property="article:modified_time" content="2020-09-30T14:43:49+00:00" />
|
||
|
|
<meta property="og:image" content="https://statisticsglobe.com/wp-content/uploads/2019/09/figure-6-change-font-size-of-axis-titles-ggplot2-r-plot.png" />
|
||
|
|
<meta property="og:image:width" content="1600" />
|
||
|
|
<meta property="og:image:height" content="1200" />
|
||
|
|
<meta name="twitter:card" content="summary_large_image" />
|
||
|
|
<meta name="twitter:label1" value="Written by">
|
||
|
|
<meta name="twitter:data1" value="Joachim">
|
||
|
|
<meta name="twitter:label2" value="Est. reading time">
|
||
|
|
<meta name="twitter:data2" value="0 minutes">
|
||
|
|
<script type="application/ld+json" class="yoast-schema-graph">{"@context":"https://schema.org","@graph":[{"@type":"WebSite","@id":"https://statisticsglobe.com/#website","url":"https://statisticsglobe.com/","name":"Statistics Globe","description":"Statistical Tutorials","potentialAction":[{"@type":"SearchAction","target":"https://statisticsglobe.com/?s={search_term_string}","query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https://statisticsglobe.com/change-font-size-of-ggplot2-plot-in-r-axis-text-main-title-legend/#primaryimage","inLanguage":"en-US","url":"https://statisticsglobe.com/wp-content/uploads/2019/09/figure-6-change-font-size-of-axis-titles-ggplot2-r-plot.png","width":1600,"height":1200,"caption":"r ggplot2 plot font size of axis titles"},{"@type":"WebPage","@id":"https://statisticsglobe.com/change-font-size-of-ggplot2-plot-in-r-axis-text-main-title-legend/#webpage","url":"https://statisticsglobe.com/change-font-size-of-ggplot2-plot-in-r-axis-text-main-title-legend/","name":"Change Font Size of ggplot2 Plot in R | Axis Text, Main Title & Legend","isPartOf":{"@id":"https://statisticsglobe.com/#website"},"primaryImageOfPage":{"@id":"https://statisticsglobe.com/change-font-size-of-ggplot2-plot-in-r-axis-text-main-title-legend/#primaryimage"},"datePublished":"2019-09-24T08:03:49+00:00","dateModified":"2020-09-30T14:43:49+00:00","description":"How to modify font sizes of ggplot2 graphics in R - 5 programming examples - Change font size of axes, main title & legend - Reproducible R code","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https://statisticsglobe.com/change-font-size-of-ggplot2-plot-in-r-axis-text-main-title-legend/"]}]}]}</script>
|
||
|
|
<!-- / Yoast SEO plugin. -->
|
||
|
|
|
||
|
|
|
||
|
|
<link rel='dns-prefetch' href='//fonts.googleapis.com' />
|
||
|
|
<link rel='dns-prefetch' href='//s.w.org' />
|
||
|
|
<link rel="alternate" type="application/rss+xml" title="Statistics Globe » Feed" href="https://statisticsglobe.com/feed/" />
|
||
|
|
<link rel="alternate" type="application/rss+xml" title="Statistics Globe » Comments Feed" href="https://statisticsglobe.com/comments/feed/" />
|
||
|
|
<link rel="alternate" type="application/rss+xml" title="Statistics Globe » Change Font Size of ggplot2 Plot in R (5 Examples) | Axis Text, Main Title & Legend Comments Feed" href="https://statisticsglobe.com/change-font-size-of-ggplot2-plot-in-r-axis-text-main-title-legend/feed/" />
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"><meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE"><meta name="theme-color" content="#f5f5f5"><meta property="og:title" content="Change Font Size of ggplot2 Plot in R (5 Examples) | Axis Text, Main Title & Legend"><meta property="og:type" content="website"><meta property="og:url" content="https://statisticsglobe.com/change-font-size-of-ggplot2-plot-in-r-axis-text-main-title-legend"><meta property="og:image" itemprop="image" content="https://statisticsglobe.com/wp-content/uploads/2019/09/figure-6-change-font-size-of-axis-titles-ggplot2-r-plot-1024x768.png"> <script type="text/javascript">
|
||
|
|
window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/13.0.0\/72x72\/","ext":".png","svgUrl":"https:\/\/s.w.org\/images\/core\/emoji\/13.0.0\/svg\/","svgExt":".svg","source":{"concatemoji":"https:\/\/statisticsglobe.com\/wp-includes\/js\/wp-emoji-release.min.js?ver=5.5.3"}};
|
||
|
|
!function(e,a,t){var r,n,o,i,p=a.createElement("canvas"),s=p.getContext&&p.getContext("2d");function c(e,t){var a=String.fromCharCode;s.clearRect(0,0,p.width,p.height),s.fillText(a.apply(this,e),0,0);var r=p.toDataURL();return s.clearRect(0,0,p.width,p.height),s.fillText(a.apply(this,t),0,0),r===p.toDataURL()}function l(e){if(!s||!s.fillText)return!1;switch(s.textBaseline="top",s.font="600 32px Arial",e){case"flag":return!c([127987,65039,8205,9895,65039],[127987,65039,8203,9895,65039])&&(!c([55356,56826,55356,56819],[55356,56826,8203,55356,56819])&&!c([55356,57332,56128,56423,56128,56418,56128,56421,56128,56430,56128,56423,56128,56447],[55356,57332,8203,56128,56423,8203,56128,56418,8203,56128,56421,8203,56128,56430,8203,56128,56423,8203,56128,56447]));case"emoji":return!c([55357,56424,8205,55356,57212],[55357,56424,8203,55356,57212])}return!1}function d(e){var t=a.createElement("script");t.src=e,t.defer=t.type="text/javascript",a.getElementsByTagName("head")[0].appendChild(t)}for(i=Array("flag","emoji"),t.supports={everything:!0,everythingExceptFlag:!0},o=0;o<i.length;o++)t.supports[i[o]]=l(i[o]),t.supports.everything=t.supports.everything&&t.supports[i[o]],"flag"!==i[o]&&(t.supports.everythingExceptFlag=t.supports.everythingExceptFlag&&t.supports[i[o]]);t.supports.everythingExceptFlag=t.supports.everythingExceptFlag&&!t.supports.flag,t.DOMReady=!1,t.readyCallback=function(){t.DOMReady=!0},t.supports.everything||(n=function(){t.readyCallback()},a.addEventListener?(a.addEventListener("DOMContentLoaded",n,!1),e.addEventListener("load",n,!1)):(e.attachEvent("onload",n),a.attachEvent("onreadystatechange",function(){"complete"===a.readyState&&t.readyCallback()})),(r=t.source||{}).concatemoji?d(r.concatemoji):r.wpemoji&&r.twemoji&&(d(r.twemoji),d(r.wpemoji)))}(window,document,window._wpemojiSettings);
|
||
|
|
</script>
|
||
|
|
<style type="text/css">
|
||
|
|
img.wp-smiley,
|
||
|
|
img.emoji {
|
||
|
|
display: inline !important;
|
||
|
|
border: none !important;
|
||
|
|
box-shadow: none !important;
|
||
|
|
height: 1em !important;
|
||
|
|
width: 1em !important;
|
||
|
|
margin: 0 .07em !important;
|
||
|
|
vertical-align: -0.1em !important;
|
||
|
|
background: none !important;
|
||
|
|
padding: 0 !important;
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
<link rel='stylesheet' id='wp-block-library-css' href='https://statisticsglobe.com/wp-includes/css/dist/block-library/style.min.css?ver=5.5.3' type='text/css' media='all' />
|
||
|
|
<link rel='stylesheet' id='rt-tpg-css' href='https://statisticsglobe.com/wp-content/plugins/MTU3NDIzMTkyMzpmNmNjYzRiZDMwY2ZhYmFhNTdlZWE3NDE2MWE2ZTc3ZTozMjY1OmQyMjdlY2ZiOGMyYTA3NTYxODhjMzE4MmJmNzZmZDEwOmh0dHBzQC8vc3RhdGlzdGljc2dsb2JlLmNvbTow-VpvwuG/assets/css/thepostgrid.css?ver=3.6.11' type='text/css' media='all' />
|
||
|
|
<link rel='stylesheet' id='cpsh-shortcodes-css' href='https://statisticsglobe.com/wp-content/plugins/column-shortcodes//assets/css/shortcodes.css?ver=1.0.1' type='text/css' media='all' />
|
||
|
|
<link rel='stylesheet' id='jquery-smooth-scroll-css' href='https://statisticsglobe.com/wp-content/plugins/jquery-smooth-scroll/css/style.css?ver=5.5.3' type='text/css' media='all' />
|
||
|
|
<link rel='stylesheet' id='kk-star-ratings-css' href='https://statisticsglobe.com/wp-content/plugins/kk-star-ratings/public/css/kk-star-ratings.css?ver=4.1.3' type='text/css' media='all' />
|
||
|
|
<style id='kk-star-ratings-inline-css' type='text/css'>
|
||
|
|
.kk-star-ratings .kksr-stars .kksr-star {
|
||
|
|
margin-right: 0px;
|
||
|
|
}
|
||
|
|
[dir="rtl"] .kk-star-ratings .kksr-stars .kksr-star {
|
||
|
|
margin-left: 0px;
|
||
|
|
margin-right: 0;
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
<link rel='stylesheet' id='page-list-style-css' href='https://statisticsglobe.com/wp-content/plugins/page-list/css/page-list.css?ver=5.2' type='text/css' media='all' />
|
||
|
|
<link rel='stylesheet' id='wp-syntax-css-css' href='https://statisticsglobe.com/wp-content/plugins/wp-syntax/css/wp-syntax.css?ver=1.1' type='text/css' media='all' />
|
||
|
|
<link rel='stylesheet' id='us-fonts-css' href='https://fonts.googleapis.com/css?family=Open+Sans%3A400%2C700&display=swap&ver=5.5.3' type='text/css' media='all' />
|
||
|
|
<!--[if lt IE 9]>
|
||
|
|
<link rel='stylesheet' id='vc_lte_ie9-css' href='https://statisticsglobe.com/wp-content/plugins/js_composer/assets/css/vc_lte_ie9.min.css?ver=6.0.4' type='text/css' media='screen' />
|
||
|
|
<![endif]-->
|
||
|
|
<link rel='stylesheet' id='us-style-css' href='https://statisticsglobe.com/wp-content/themes/Impreza/css/style.min.css?ver=7.8.4' type='text/css' media='all' />
|
||
|
|
<link rel='stylesheet' id='us-responsive-css' href='https://statisticsglobe.com/wp-content/themes/Impreza/common/css/responsive.min.css?ver=7.8.4' type='text/css' media='all' />
|
||
|
|
<link rel='stylesheet' id='__EPYT__style-css' href='https://statisticsglobe.com/wp-content/plugins/youtube-embed-plus/styles/ytprefs.min.css?ver=13.4.1.1' type='text/css' media='all' />
|
||
|
|
<style id='__EPYT__style-inline-css' type='text/css'>
|
||
|
|
|
||
|
|
.epyt-gallery-thumb {
|
||
|
|
width: 33.333%;
|
||
|
|
}
|
||
|
|
|
||
|
|
</style>
|
||
|
|
<script type='text/javascript' src='https://statisticsglobe.com/wp-includes/js/jquery/jquery.js?ver=1.12.4-wp' id='jquery-core-js'></script>
|
||
|
|
<script type='text/javascript' id='__ytprefs__-js-extra'>
|
||
|
|
/* <![CDATA[ */
|
||
|
|
var _EPYT_ = {"ajaxurl":"https:\/\/statisticsglobe.com\/wp-admin\/admin-ajax.php","security":"683c503362","gallery_scrolloffset":"20","eppathtoscripts":"https:\/\/statisticsglobe.com\/wp-content\/plugins\/youtube-embed-plus\/scripts\/","eppath":"https:\/\/statisticsglobe.com\/wp-content\/plugins\/youtube-embed-plus\/","epresponsiveselector":"[\"iframe.__youtube_prefs__\"]","epdovol":"1","version":"13.4.1.1","evselector":"iframe.__youtube_prefs__[src], iframe[src*=\"youtube.com\/embed\/\"], iframe[src*=\"youtube-nocookie.com\/embed\/\"]","ajax_compat":"","ytapi_load":"light","pause_others":"","stopMobileBuffer":"1","vi_active":"","vi_js_posttypes":[]};
|
||
|
|
/* ]]> */
|
||
|
|
</script>
|
||
|
|
<script type='text/javascript' src='https://statisticsglobe.com/wp-content/plugins/youtube-embed-plus/scripts/ytprefs.min.js?ver=13.4.1.1' id='__ytprefs__-js'></script>
|
||
|
|
<script type='text/javascript' src='https://statisticsglobe.com/wp-content/plugins/youtube-embed-plus/scripts/jquery.cookie.min.js?ver=13.4.1.1' id='__jquery_cookie__-js'></script>
|
||
|
|
<link rel="https://api.w.org/" href="https://statisticsglobe.com/wp-json/" /><link rel="alternate" type="application/json" href="https://statisticsglobe.com/wp-json/wp/v2/pages/4248" /><link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://statisticsglobe.com/xmlrpc.php?rsd" />
|
||
|
|
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="https://statisticsglobe.com/wp-includes/wlwmanifest.xml" />
|
||
|
|
<meta name="generator" content="WordPress 5.5.3" />
|
||
|
|
<link rel='shortlink' href='https://statisticsglobe.com/?p=4248' />
|
||
|
|
<link rel="alternate" type="application/json+oembed" href="https://statisticsglobe.com/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fstatisticsglobe.com%2Fchange-font-size-of-ggplot2-plot-in-r-axis-text-main-title-legend" />
|
||
|
|
<link rel="alternate" type="text/xml+oembed" href="https://statisticsglobe.com/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fstatisticsglobe.com%2Fchange-font-size-of-ggplot2-plot-in-r-axis-text-main-title-legend&format=xml" />
|
||
|
|
<meta name="google-site-verification" content="6HTUL9nR31IF2nVYjE2hSZRMZ4Dy0-35nnCwhq3xSgg" /><script type="application/ld+json"></script><script type="text/javascript">
|
||
|
|
(function(url){
|
||
|
|
if(/(?:Chrome\/26\.0\.1410\.63 Safari\/537\.31|WordfenceTestMonBot)/.test(navigator.userAgent)){ return; }
|
||
|
|
var addEvent = function(evt, handler) {
|
||
|
|
if (window.addEventListener) {
|
||
|
|
document.addEventListener(evt, handler, false);
|
||
|
|
} else if (window.attachEvent) {
|
||
|
|
document.attachEvent('on' + evt, handler);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
var removeEvent = function(evt, handler) {
|
||
|
|
if (window.removeEventListener) {
|
||
|
|
document.removeEventListener(evt, handler, false);
|
||
|
|
} else if (window.detachEvent) {
|
||
|
|
document.detachEvent('on' + evt, handler);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
var evts = 'contextmenu dblclick drag dragend dragenter dragleave dragover dragstart drop keydown keypress keyup mousedown mousemove mouseout mouseover mouseup mousewheel scroll'.split(' ');
|
||
|
|
var logHuman = function() {
|
||
|
|
if (window.wfLogHumanRan) { return; }
|
||
|
|
window.wfLogHumanRan = true;
|
||
|
|
var wfscr = document.createElement('script');
|
||
|
|
wfscr.type = 'text/javascript';
|
||
|
|
wfscr.async = true;
|
||
|
|
wfscr.src = url + '&r=' + Math.random();
|
||
|
|
(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(wfscr);
|
||
|
|
for (var i = 0; i < evts.length; i++) {
|
||
|
|
removeEvent(evts[i], logHuman);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
for (var i = 0; i < evts.length; i++) {
|
||
|
|
addEvent(evts[i], logHuman);
|
||
|
|
}
|
||
|
|
})('//statisticsglobe.com/?wordfence_lh=1&hid=072B7B170AA2E81AA225D3C5C0BB6EEF');
|
||
|
|
</script><meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests;block-all-mixed-content" />
|
||
|
|
<script>
|
||
|
|
if ( !/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( navigator.userAgent ) ) {
|
||
|
|
var root = document.getElementsByTagName( 'html' )[ 0 ]
|
||
|
|
root.className += " no-touch";
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
<meta name="generator" content="Powered by WPBakery Page Builder - drag and drop page builder for WordPress."/>
|
||
|
|
<style type="text/css">.broken_link, a.broken_link {
|
||
|
|
text-decoration: line-through;
|
||
|
|
}</style><link rel="icon" href="https://statisticsglobe.com/wp-content/uploads/2019/07/SG-Logo-PNG-150x150.png" sizes="32x32" />
|
||
|
|
<link rel="icon" href="https://statisticsglobe.com/wp-content/uploads/2019/07/SG-Logo-PNG-300x300.png" sizes="192x192" />
|
||
|
|
<link rel="apple-touch-icon" href="https://statisticsglobe.com/wp-content/uploads/2019/07/SG-Logo-PNG-300x300.png" />
|
||
|
|
<meta name="msapplication-TileImage" content="https://statisticsglobe.com/wp-content/uploads/2019/07/SG-Logo-PNG-300x300.png" />
|
||
|
|
|
||
|
|
<!-- BEGIN ExactMetrics v5.3.10 Universal Analytics - https://exactmetrics.com/ -->
|
||
|
|
<script>
|
||
|
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||
|
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||
|
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||
|
|
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
||
|
|
ga('create', 'UA-113284751-1', 'auto');
|
||
|
|
ga('send', 'pageview');
|
||
|
|
</script>
|
||
|
|
<!-- END ExactMetrics Universal Analytics -->
|
||
|
|
<style type="text/css" id="wp-custom-css">
|
||
|
|
.circle-image {
|
||
|
|
border-radius: 50%;
|
||
|
|
-moz-border-radius: 50%;
|
||
|
|
-webkit-border-radius: 50%;
|
||
|
|
-o-border-radius: 50%;
|
||
|
|
} </style>
|
||
|
|
<noscript><style> .wpb_animate_when_almost_visible { opacity: 1; }</style></noscript> <style id="us-theme-options-css">@font-face{font-display:block;font-style:normal;font-family:"fontawesome";font-weight:900;src:url("https://statisticsglobe.com/wp-content/themes/Impreza/fonts/fa-solid-900.woff2?ver=5.14.0") format("woff2"),url("https://statisticsglobe.com/wp-content/themes/Impreza/fonts/fa-solid-900.woff?ver=5.14.0") format("woff")}.fas,.fa{font-family:"fontawesome";font-weight:900}@font-face{font-display:block;font-style:normal;font-family:"fontawesome";font-weight:400;src:url("https://statisticsglobe.com/wp-content/themes/Impreza/fonts/fa-regular-400.woff2?ver=5.14.0") format("woff2"),url("https://statisticsglobe.com/wp-content/themes/Impreza/fonts/fa-regular-400.woff?ver=5.14.0") format("woff")}.far{font-family:"fontawesome";font-weight:400}@font-face{font-display:block;font-style:normal;font-family:"fontawesome";font-weight:300;src:url("https://statisticsglobe.com/wp-content/themes/Impreza/fonts/fa-light-300.woff2?ver=5.14.0") format("woff2"),url("https://statisticsglobe.com/wp-content/themes/Impreza/fonts/fa-light-300.woff?ver=5.14.0") format("woff")}.fal{font-family:"fontawesome";font-weight:300}@font-face{font-display:block;font-style:normal;font-family:"Font Awesome 5 Duotone";font-weight:900;src:url("https://statisticsglobe.com/wp-content/themes/Impreza/fonts/fa-duotone-900.woff2?ver=5.14.0") format("woff2"),url("https://statisticsglobe.com/wp-content/themes/Impreza/fonts/fa-duotone-900.woff?ver=5.14.0") format("woff")}.fad{font-family:"Font Awesome 5 Duotone";font-weight:900;position:relative}@font-face{font-display:block;font-style:normal;font-family:"Font Awesome 5 Brands";font-weight:400;src:url("https://statisticsglobe.com/wp-content/themes/Impreza/fonts/fa-brands-400.woff2?ver=5.14.0") format("woff2"),url("https://statisticsglobe.com/wp-content/themes/Impreza/fonts/fa-brands-400.woff?ver=5.14.0") format("woff")}.fab{font-family:"Font Awesome 5 Brands";font-weight:400}@font-face{font-display:block;font-style:normal;font-family:"Material Icons";font-weight:400;src:url("https://statisticsglobe.com/wp-content/themes/Impreza/fonts/material-icons.woff2?ver=5.14.0") format("woff2"),url("https://statisticsglobe.com/wp-content/themes/Impreza/fonts/material-icons.woff?ver=5.14.0") format("woff")}.material-icons{font-family:"Material Icons";font-weight:400;font-style:normal;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:"liga";-moz-osx-font-smoothing:grayscale} .style_phone6-1>*{background-image:url(https://statisticsglobe.com/wp-content/themes/Impreza/img/phone-6-black-real.png)} .style_phone6-2>*{background-image:url(https://statisticsglobe.com/wp-content/themes/Impreza/img/phone-6-white-real.png)} .style_phone6-3>*{background-image:url(https://statisticsglobe.com/wp-content/themes/Impreza/img/phone-6-black-flat.png)} .style_phone6-4>*{background-image:url(https://statisticsglobe.com/wp-content/themes/Impreza/img/phone-6-white-flat.png)}.leaflet-default-icon-path{background-image:url(https://statisticsglobe.com/wp-content/themes/Impreza/common/css/vendor/images/marker-icon.png)} html, .l-header .widget, .menu-item-object-us_page_block{font-family:'Open Sans', sans-serif;font-weight:400;font-size:15px;line-height:25px}h1{font-weight:400;font-size:40px;line-height:1.4;letter-spacing:0em;margin-bottom:1.5rem}h2{font-weight:400;font-size:34px;line-height:1.4;letter-spacing:0em;margin-bottom:1.5rem}h3{font-weight:400;font-size:28px;line-height:1.4;letter-spacing:0em;margin-bottom:1.5rem}.widgettitle, .comment-reply-title, h4{font-weight:400;font-size:24px;line-height:1.4;letter-spacing:0em;margin-bottom:1.5rem}h5{font-weight:400;font-size:20px;line-height:1.4;letter-spacing:0em;margin-bottom:1.5rem}h6{font-weight:400;font-size:18px;line-height:1.4;letter-spacing:0em;margin-bottom:1.5rem}@media (max-width:767px){html{font-size:15px;line-height:25px} h1{font-size:30px} h1.vc_custom_heading:not([class*="us_custom_"]){font-size:30px
|
||
|
|
<style id="us-header-css"> .l-subheader.at_middle, .l-subheader.at_middle .w-dropdown-list, .l-subheader.at_middle .type_mobile .w-nav-list.level_1{background:#353436;color:#ebebeb} .no-touch .l-subheader.at_middle a:hover, .no-touch .l-header.bg_transparent .l-subheader.at_middle .w-dropdown.opened a:hover{color:#1b98e0} .l-header.bg_transparent:not(.sticky) .l-subheader.at_middle{background:transparent;color:#ffffff} .no-touch .l-header.bg_transparent:not(.sticky) .at_middle .w-cart-link:hover, .no-touch .l-header.bg_transparent:not(.sticky) .at_middle .w-text a:hover, .no-touch .l-header.bg_transparent:not(.sticky) .at_middle .w-html a:hover, .no-touch .l-header.bg_transparent:not(.sticky) .at_middle .w-nav>a:hover, .no-touch .l-header.bg_transparent:not(.sticky) .at_middle .w-menu a:hover, .no-touch .l-header.bg_transparent:not(.sticky) .at_middle .w-search>a:hover, .no-touch .l-header.bg_transparent:not(.sticky) .at_middle .w-dropdown a:hover, .no-touch .l-header.bg_transparent:not(.sticky) .at_middle .type_desktop .menu-item.level_1:hover>a{color:#ffffff} .header_ver .l-header{background:#353436;color:#ebebeb}@media (min-width:933px){.hidden_for_default{display:none!important} .l-subheader.at_top{display:none} .l-subheader.at_bottom{display:none}.l-header{position:relative;z-index:111;width:100%} .l-subheader{margin:0 auto} .l-subheader.width_full{padding-left:1.5rem;padding-right:1.5rem} .l-subheader-h{display:flex;align-items:center;position:relative;margin:0 auto;height:inherit} .w-header-show{display:none}.l-header.pos_fixed{position:fixed;left:0} .l-header.pos_fixed:not(.notransition) .l-subheader{transition-property:transform, background, box-shadow, line-height, height;transition-duration:0.3s;transition-timing-function:cubic-bezier(.78,.13,.15,.86)}.header_hor .l-header.sticky_auto_hide{transition:transform 0.3s cubic-bezier(.78,.13,.15,.86) 0.1s} .header_hor .l-header.sticky_auto_hide.down{transform:translateY(-100%);overflow:hidden}.l-header.bg_transparent:not(.sticky) .l-subheader{box-shadow:none!important;background:none} .l-header.bg_transparent~.l-main .l-section.width_full.height_auto:first-child>.l-section-h{padding-top:0!important;padding-bottom:0!important}.l-header.pos_static.bg_transparent{position:absolute;left:0}.l-subheader.width_full .l-subheader-h{max-width:none!important}.headerinpos_above .l-header.pos_fixed{overflow:hidden;transition:transform 0.3s;transform:translate3d(0,-100%,0)} .headerinpos_above .l-header.pos_fixed.sticky{overflow:visible;transform:none} .headerinpos_above .l-header.pos_fixed~.l-section>.l-section-h, .headerinpos_above .l-header.pos_fixed~.l-main .l-section:first-of-type>.l-section-h{padding-top:0!important}.l-header.shadow_thin .l-subheader.at_middle, .l-header.shadow_thin .l-subheader.at_bottom, .l-header.shadow_none.sticky .l-subheader.at_middle, .l-header.shadow_none.sticky .l-subheader.at_bottom{box-shadow:0 1px 0 rgba(0,0,0,0.08)} .l-header.shadow_wide .l-subheader.at_middle, .l-header.shadow_wide .l-subheader.at_bottom{box-shadow:0 3px 5px -1px rgba(0,0,0,0.1), 0 2px 1px -1px rgba(0,0,0,0.05)}.header_hor .l-subheader-cell>.w-cart{margin-left:0;margin-right:0} .l-header:before{content:'50'} .l-subheader.at_top{line-height:40px;height:40px} .l-header.sticky .l-subheader.at_top{line-height:0px;height:0px;overflow:hidden} .l-subheader.at_middle{line-height:50px;height:50px} .l-header.sticky .l-subheader.at_middle{line-height:50px;height:50px} .l-subheader.at_bottom{line-height:50px;height:50px} .l-header.sticky .l-subheader.at_bottom{line-height:50px;height:50px}.l-subheader.with_centering .l-subheader-cell.at_left, .l-subheader.with_centering .l-subheader-cell.at_right{flex-basis:100px}.l-header.pos_fixed~.l-main>.l-section:first-of-type>.l-section-h, .headerinpos_below .l-header.pos_fixed~.l-main>.l-section:nth-of-type(2)>.l-section-h, .l-header.pos_static.bg_transparent~.l-main>.l-section:first-of-type>.l-section-h{padding-top:50px} .headerinpos_bottom .l-header.pos_fixed~.l-main>.l-section:first-of-type>.l-section-h{padding-bottom:50px}.l-header.bg_trans
|
||
|
|
<style id="us-custom-css"> @media (min-width:901px){.sidebar-fix>div>div>.vc_col-sm-3{width:25.97%} .sidebar-fix>div>div>.vc_col-sm-9{width:74.03%}} .l-main .aligncenter.wp-caption , .l-main img.aligncenter{max-width:100%!important}</style>
|
||
|
|
<script id="mcjs">!function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,"script","https://chimpstatic.com/mcjs-connected/js/users/e21bd5d10aa2be474db535a7b/9fdccf8a4bf51a3bb7a5e5e28.js");</script></head>
|
||
|
|
<body class="page-template-default page page-id-4248 page-child parent-pageid-1245 wp-embed-responsive l-body Impreza_7.8.4 us-core_7.8.4 header_hor headerinpos_top links_underline state_default wpb-js-composer js-comp-ver-6.0.4 vc_responsive" itemscope itemtype="https://schema.org/WebPage">
|
||
|
|
|
||
|
|
<div class="l-canvas type_wide">
|
||
|
|
<header id="page-header" class="l-header pos_fixed bg_solid shadow_thin id_138" itemscope itemtype="https://schema.org/WPHeader"><div class="l-subheader at_middle"><div class="l-subheader-h"><div class="l-subheader-cell at_left"><div class="w-image ush_image_5"><a class="w-image-h" href="https://statisticsglobe.com/" aria-label="Link"><img width="1024" height="1024" src="https://statisticsglobe.com/wp-content/uploads/2019/07/SG-Logo-PNG.png" class="attachment-large size-large" alt="Statistics Globe Main Image JPG" loading="lazy" srcset="https://statisticsglobe.com/wp-content/uploads/2019/07/SG-Logo-PNG.png 1024w, https://statisticsglobe.com/wp-content/uploads/2019/07/SG-Logo-PNG-150x150.png 150w, https://statisticsglobe.com/wp-content/uploads/2019/07/SG-Logo-PNG-300x300.png 300w, https://statisticsglobe.com/wp-content/uploads/2019/07/SG-Logo-PNG-350x350.png 350w, https://statisticsglobe.com/wp-content/uploads/2019/07/SG-Logo-PNG-600x600.png 600w, https://statisticsglobe.com/wp-content/uploads/2019/07/SG-Logo-PNG-768x768.png 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></div><div class="w-text ush_text_1"><a class="w-text-h" href="https://statisticsglobe.com/"><span class="w-text-value">Statistics Globe</span></a></div></div><div class="l-subheader-cell at_center"><nav class="w-nav type_desktop ush_menu_1 dropdown_height m_align_left m_layout_dropdown" itemscope itemtype="https://schema.org/SiteNavigationElement"><a class="w-nav-control" href="javascript:void(0);" aria-label="Menu"><div class="w-nav-icon"><i></i></div></a><ul class="w-nav-list level_1 hide_for_mobiles hover_simple"><li id="menu-item-2050" class="menu-item menu-item-type-post_type menu-item-object-page w-nav-item level_1 menu-item-2050"><a class="w-nav-anchor level_1" href="https://statisticsglobe.com/statistical-methods-for-data-analysis/"><span class="w-nav-title">Statistical Methods</span><span class="w-nav-arrow"></span></a></li><li id="menu-item-1958" class="menu-item menu-item-type-post_type menu-item-object-page current-page-ancestor w-nav-item level_1 menu-item-1958"><a class="w-nav-anchor level_1" href="https://statisticsglobe.com/r-programming-language"><span class="w-nav-title">R Programming</span><span class="w-nav-arrow"></span></a></li><li id="menu-item-2188" class="menu-item menu-item-type-post_type menu-item-object-page w-nav-item level_1 menu-item-2188"><a class="w-nav-anchor level_1" href="https://statisticsglobe.com/python-programming-language"><span class="w-nav-title">Python</span><span class="w-nav-arrow"></span></a></li><li id="menu-item-6021" class="menu-item menu-item-type-post_type menu-item-object-page w-nav-item level_1 menu-item-6021"><a class="w-nav-anchor level_1" href="https://statisticsglobe.com/joachim-schork/"><span class="w-nav-title">About</span><span class="w-nav-arrow"></span></a></li><li class="w-nav-close"></li></ul><div class="w-nav-options hidden" onclick='return {"mobileWidth":1200,"mobileBehavior":1}'></div></nav><div class="w-search ush_search_1 layout_fullscreen"><a class="w-search-open" href="javascript:void(0);" aria-label="Search"><i class="fas fa-search"></i></a><div class="w-search-form"><form class="w-form-row for_text" action="https://statisticsglobe.com/" method="get"><div class="w-form-row-field"><input type="text" name="s" id="us_form_search_s" placeholder="Search" aria-label="Search" value/></div><a class="w-search-close" href="javascript:void(0);" aria-label="Close"></a></form></div></div></div><div class="l-subheader-cell at_right"><div class="w-image ush_image_2"><a class="w-image-h" href="https://www.youtube.com/c/statisticsglobe" target="_blank" rel="noopener" aria-label="Link"><img width="512" height="512" src="https://statisticsglobe.com/wp-content/uploads/2020/07/youtube-statistics-globe-jos.png" class="attachment-large size-large" alt="" loading="lazy" srcset="https://statisticsglobe.com/wp-content/uploads/2020/07/youtube-statistics-globe-jos.png 512w, https://statisticsglobe.com/wp-content/uploads/2020/07/youtube-statistics-globe-jos-300x300.png 300w, https:/
|
||
|
|
<section class="l-section height_auto for_sidebar at_right"><div class="l-section-h"><div class="g-cols type_default valign_top"><div class="vc_col-sm-9 vc_column_container l-content"><div class="vc_column-inner"><div class="wpb_wrapper"><section class="l-section height_medium"><div class="l-section-h i-cf"><h1>Change Font Size of ggplot2 Plot in R (5 Examples) | Axis Text, Main Title & Legend</h1>
|
||
|
|
<p> </p>
|
||
|
|
<p>In this article, I’ll explain how to <strong>increase and decrease the text font sizes of ggplot2 plots</strong> in <a href="https://statisticsglobe.com/r-programming-language/">R</a>.</p>
|
||
|
|
<p>The tutorial consists of these content blocks:</p>
|
||
|
|
<ul>
|
||
|
|
<li><a href="https://statisticsglobe.com/change-font-size-of-ggplot2-plot-in-r-axis-text-main-title-legend#data">Example Data</a></li>
|
||
|
|
<li><a href="https://statisticsglobe.com/change-font-size-of-ggplot2-plot-in-r-axis-text-main-title-legend#first">Example 1: Change Font Size of All Text Elements</a></li>
|
||
|
|
<li><a href="https://statisticsglobe.com/change-font-size-of-ggplot2-plot-in-r-axis-text-main-title-legend#second">Example 2: Change Font Size of Axis Text</a></li>
|
||
|
|
<li><a href="https://statisticsglobe.com/change-font-size-of-ggplot2-plot-in-r-axis-text-main-title-legend#third">Example 3: Change Font Size of Axis Titles</a></li>
|
||
|
|
<li><a href="https://statisticsglobe.com/change-font-size-of-ggplot2-plot-in-r-axis-text-main-title-legend#fourth">Example 4: Change Font Size of Main Title</a></li>
|
||
|
|
<li><a href="https://statisticsglobe.com/change-font-size-of-ggplot2-plot-in-r-axis-text-main-title-legend#fifth">Example 5: Change Font Size of Legend</a></li>
|
||
|
|
<li><a href="https://statisticsglobe.com/change-font-size-of-ggplot2-plot-in-r-axis-text-main-title-legend#resources">Video & Further Resources</a></li>
|
||
|
|
</ul>
|
||
|
|
<p>Let’s do this:</p>
|
||
|
|
<p><a name="data"></a></p>
|
||
|
|
<p> </p>
|
||
|
|
<h2>Example Data</h2>
|
||
|
|
<p>In the examples of this R tutorial, I’ll use the following ggplot2 <a href="https://statisticsglobe.com/graphics-in-r">plot</a> as basis. In order to create our example plot, we first need to create a data frame:</p>
|
||
|
|
|
||
|
|
<div class="wp_syntax" style="position:relative;"><table><tr><td class="code"><pre class="csharp" style="font-family:monospace;">data <span style="color: #008000;"><-</span> data<span style="color: #008000;">.</span><span style="color: #0000FF;">frame</span><span style="color: #008000;">(</span>Probability <span style="color: #008000;">=</span> c<span style="color: #008000;">(</span><span style="color: #FF0000;">0.5</span>, <span style="color: #FF0000;">0.7</span>, <span style="color: #FF0000;">0.4</span><span style="color: #008000;">)</span>, <span style="color: #008080;"># Example data</span>
|
||
|
|
Groups <span style="color: #008000;">=</span> c<span style="color: #008000;">(</span><span style="color: #666666;">"Group A"</span>, <span style="color: #666666;">"Group B"</span>, <span style="color: #666666;">"Group C"</span><span style="color: #008000;">)</span><span style="color: #008000;">)</span></pre></td></tr></table><p class="theCode" style="display:none;">data <- data.frame(Probability = c(0.5, 0.7, 0.4), # Example data
|
||
|
|
Groups = c("Group A", "Group B", "Group C"))</p></div>
|
||
|
|
|
||
|
|
<p>Our example data consists of two columns: A column containing some probability values and another column containing certain groups.</p>
|
||
|
|
<p>If we want to draw a ggplot2 plot of this data frame, we need to install and load the <a href="https://cran.r-project.org/web/packages/ggplot2/ggplot2.pdf" rel="noopener noreferrer" target="_blank">ggplot2 package</a> to R:</p>
|
||
|
|
|
||
|
|
<div class="wp_syntax" style="position:relative;"><table><tr><td class="code"><pre class="csharp" style="font-family:monospace;">install<span style="color: #008000;">.</span><span style="color: #0000FF;">packages</span><span style="color: #008000;">(</span><span style="color: #666666;">"ggplot2"</span><span style="color: #008000;">)</span> <span style="color: #008080;"># Install ggplot2</span>
|
||
|
|
library<span style="color: #008000;">(</span><span style="color: #666666;">"ggplot2"</span><span style="color: #008000;">)</span> <span style="color: #008080;"># Load ggplot2</span></pre></td></tr></table><p class="theCode" style="display:none;">install.packages("ggplot2") # Install ggplot2
|
||
|
|
library("ggplot2") # Load ggplot2</p></div>
|
||
|
|
|
||
|
|
<p>Now, we can <a href="https://statisticsglobe.com/barplot-in-r">draw a barchart of our data</a> as follows:</p>
|
||
|
|
|
||
|
|
<div class="wp_syntax" style="position:relative;"><table><tr><td class="code"><pre class="csharp" style="font-family:monospace;">my_ggp <span style="color: #008000;"><-</span> ggplot<span style="color: #008000;">(</span>data, <span style="color: #008080;"># Basic ggplot2</span>
|
||
|
|
aes<span style="color: #008000;">(</span>x <span style="color: #008000;">=</span> Groups, y <span style="color: #008000;">=</span> Probability, fill <span style="color: #008000;">=</span> Groups<span style="color: #008000;">)</span><span style="color: #008000;">)</span> <span style="color: #008000;">+</span>
|
||
|
|
geom_bar<span style="color: #008000;">(</span>stat <span style="color: #008000;">=</span> <span style="color: #666666;">"Identity"</span><span style="color: #008000;">)</span> <span style="color: #008000;">+</span>
|
||
|
|
ggtitle<span style="color: #008000;">(</span><span style="color: #666666;">"My ggplo2 Plot"</span><span style="color: #008000;">)</span>
|
||
|
|
my_ggp <span style="color: #008080;"># Draw plot</span></pre></td></tr></table><p class="theCode" style="display:none;">my_ggp <- ggplot(data, # Basic ggplot2
|
||
|
|
aes(x = Groups, y = Probability, fill = Groups)) +
|
||
|
|
geom_bar(stat = "Identity") +
|
||
|
|
ggtitle("My ggplo2 Plot")
|
||
|
|
my_ggp # Draw plot</p></div>
|
||
|
|
|
||
|
|
<p> </p>
|
||
|
|
<p><img src="https://statisticsglobe.com/wp-content/uploads/2019/09/figure-1-default-font-size-ggplot2-r-plot.png" alt="ggplot2 plot in r default font size" class="aligncenter size-full wp-image-1353" title="Default Font Sizes"/></p>
|
||
|
|
<p style="text-align: center;"><em><strong>Figure 1: ggplot2 Barchart with Default Font Sizes.</strong></em></p>
|
||
|
|
<p> </p>
|
||
|
|
<p>Figure 1 illustrates how our example plot looks like. It’s a simple barplot with three bars, each of them representing the probability of a different group.</p>
|
||
|
|
<p>The font sizes of our barchart are the default sizes. In the following examples, I’ll explain how to change these font sizes with some simple R code.</p>
|
||
|
|
<p>Let’s move on…</p>
|
||
|
|
<p><a name="first"></a></p>
|
||
|
|
<p> </p>
|
||
|
|
<h2>Example 1: Change Font Size of All Text Elements</h2>
|
||
|
|
<p>In Example 1, I’ll show you how to change all font sizes within your ggplot2 graph with one line of R code. We simply have to specify the element text size within the theme function as shown below:</p>
|
||
|
|
|
||
|
|
<div class="wp_syntax" style="position:relative;"><table><tr><td class="code"><pre class="csharp" style="font-family:monospace;">my_ggp <span style="color: #008000;">+</span> theme<span style="color: #008000;">(</span>text <span style="color: #008000;">=</span> element_text<span style="color: #008000;">(</span>size <span style="color: #008000;">=</span> <span style="color: #FF0000;">20</span><span style="color: #008000;">)</span><span style="color: #008000;">)</span> <span style="color: #008080;"># All font sizes</span></pre></td></tr></table><p class="theCode" style="display:none;">my_ggp + theme(text = element_text(size = 20)) # All font sizes</p></div>
|
||
|
|
|
||
|
|
<p> </p>
|
||
|
|
<p><img src="https://statisticsglobe.com/wp-content/uploads/2019/09/figure-2-change-font-size-of-all-text-elements-ggplot2-r-plot.png" alt="r ggplot2 plot font size of all text elements" class="aligncenter size-full wp-image-1353" title="All Text Elements"/></p>
|
||
|
|
<p style="text-align: center;"><em><strong>Figure 2: Changing Font Size of All Text Elements.</strong></em></p>
|
||
|
|
<p> </p>
|
||
|
|
<p>Figure 2 shows the same graphics as Figure 1, but the font sizes of all text elements are much larger.</p>
|
||
|
|
<p>Note that you may change the size from 20 to any other value that you want.</p>
|
||
|
|
<p>In the next examples, I’ll explain how to change only specific text elements of a ggplot2 chart. So keep on reading!</p>
|
||
|
|
<p><a name="second"></a></p>
|
||
|
|
<p> </p>
|
||
|
|
<h2>Example 2: Change Font Size of Axis Text</h2>
|
||
|
|
<p>Example 2 illustrates how to modify the font size of the axis labels. We can either change both axes…</p>
|
||
|
|
|
||
|
|
<div class="wp_syntax" style="position:relative;"><table><tr><td class="code"><pre class="csharp" style="font-family:monospace;">my_ggp <span style="color: #008000;">+</span> theme<span style="color: #008000;">(</span>axis<span style="color: #008000;">.</span><span style="color: #0000FF;">text</span> <span style="color: #008000;">=</span> element_text<span style="color: #008000;">(</span>size <span style="color: #008000;">=</span> <span style="color: #FF0000;">20</span><span style="color: #008000;">)</span><span style="color: #008000;">)</span> <span style="color: #008080;"># Axis text size</span></pre></td></tr></table><p class="theCode" style="display:none;">my_ggp + theme(axis.text = element_text(size = 20)) # Axis text size</p></div>
|
||
|
|
|
||
|
|
<p> </p>
|
||
|
|
<p><img src="https://statisticsglobe.com/wp-content/uploads/2019/09/figure-3-change-font-size-of-axis-text-ggplot2-r-plot.png" alt="r ggplot2 plot font size of axis text" class="aligncenter size-full wp-image-1353" title="Axis Text"/></p>
|
||
|
|
<p style="text-align: center;"><em><strong>Figure 3: Changing Font Size of Axis Text.</strong></em></p>
|
||
|
|
<p> </p>
|
||
|
|
<p>…only the x-axis label…</p>
|
||
|
|
|
||
|
|
<div class="wp_syntax" style="position:relative;"><table><tr><td class="code"><pre class="csharp" style="font-family:monospace;">my_ggp <span style="color: #008000;">+</span> theme<span style="color: #008000;">(</span>axis<span style="color: #008000;">.</span><span style="color: #0000FF;">text</span><span style="color: #008000;">.</span><span style="color: #0000FF;">x</span> <span style="color: #008000;">=</span> element_text<span style="color: #008000;">(</span>size <span style="color: #008000;">=</span> <span style="color: #FF0000;">20</span><span style="color: #008000;">)</span><span style="color: #008000;">)</span> <span style="color: #008080;"># x-axis text size</span></pre></td></tr></table><p class="theCode" style="display:none;">my_ggp + theme(axis.text.x = element_text(size = 20)) # x-axis text size</p></div>
|
||
|
|
|
||
|
|
<p> </p>
|
||
|
|
<p><img src="https://statisticsglobe.com/wp-content/uploads/2019/09/figure-4-change-font-size-of-x-axis-text-ggplot2-r-plot.png" alt="r ggplot2 plot font size of x axis text" class="aligncenter size-full wp-image-1353" title="x-Axis Text"/></p>
|
||
|
|
<p style="text-align: center;"><em><strong>Figure 4: Changing Font Size of x-Axis Text.</strong></em></p>
|
||
|
|
<p> </p>
|
||
|
|
<p>…or only the y axis:</p>
|
||
|
|
|
||
|
|
<div class="wp_syntax" style="position:relative;"><table><tr><td class="code"><pre class="csharp" style="font-family:monospace;">my_ggp <span style="color: #008000;">+</span> theme<span style="color: #008000;">(</span>axis<span style="color: #008000;">.</span><span style="color: #0000FF;">text</span><span style="color: #008000;">.</span><span style="color: #0000FF;">y</span> <span style="color: #008000;">=</span> element_text<span style="color: #008000;">(</span>size <span style="color: #008000;">=</span> <span style="color: #FF0000;">20</span><span style="color: #008000;">)</span><span style="color: #008000;">)</span> <span style="color: #008080;"># y-axis text size</span></pre></td></tr></table><p class="theCode" style="display:none;">my_ggp + theme(axis.text.y = element_text(size = 20)) # y-axis text size</p></div>
|
||
|
|
|
||
|
|
<p> </p>
|
||
|
|
<p><img src="https://statisticsglobe.com/wp-content/uploads/2019/09/figure-5-change-font-size-of-y-axis-text-ggplot2-r-plot.png" alt="r ggplot2 plot font size of y axis text" class="aligncenter size-full wp-image-1353" title="y-Axis Text"/></p>
|
||
|
|
<p style="text-align: center;"><em><strong>Figure 5: Changing Font Size of y-Axis Text.</strong></em></p>
|
||
|
|
<p><a name="third"></a></p>
|
||
|
|
<p> </p>
|
||
|
|
<h2>Example 3: Change Font Size of Axis Titles</h2>
|
||
|
|
<p>With the following R syntax, we can change the size of the axis titles of our plot. We can adjust the size of all axis titles…</p>
|
||
|
|
|
||
|
|
<div class="wp_syntax" style="position:relative;"><table><tr><td class="code"><pre class="csharp" style="font-family:monospace;">my_ggp <span style="color: #008000;">+</span> theme<span style="color: #008000;">(</span>axis<span style="color: #008000;">.</span><span style="color: #0000FF;">title</span> <span style="color: #008000;">=</span> element_text<span style="color: #008000;">(</span>size <span style="color: #008000;">=</span> <span style="color: #FF0000;">20</span><span style="color: #008000;">)</span><span style="color: #008000;">)</span> <span style="color: #008080;"># Axis titles</span></pre></td></tr></table><p class="theCode" style="display:none;">my_ggp + theme(axis.title = element_text(size = 20)) # Axis titles</p></div>
|
||
|
|
|
||
|
|
<p> </p>
|
||
|
|
<p><img src="https://statisticsglobe.com/wp-content/uploads/2019/09/figure-6-change-font-size-of-axis-titles-ggplot2-r-plot.png" alt="r ggplot2 plot font size of axis titles" class="aligncenter size-full wp-image-1353" title="Axis Titles"/></p>
|
||
|
|
<p style="text-align: center;"><em><strong>Figure 6: Changing Font Size of Axis Titles.</strong></em></p>
|
||
|
|
<p> </p>
|
||
|
|
<p>…only the x-axis title…</p>
|
||
|
|
|
||
|
|
<div class="wp_syntax" style="position:relative;"><table><tr><td class="code"><pre class="csharp" style="font-family:monospace;">my_ggp <span style="color: #008000;">+</span> theme<span style="color: #008000;">(</span>axis<span style="color: #008000;">.</span><span style="color: #0000FF;">title</span><span style="color: #008000;">.</span><span style="color: #0000FF;">x</span> <span style="color: #008000;">=</span> element_text<span style="color: #008000;">(</span>size <span style="color: #008000;">=</span> <span style="color: #FF0000;">20</span><span style="color: #008000;">)</span><span style="color: #008000;">)</span> <span style="color: #008080;"># x-axis title</span></pre></td></tr></table><p class="theCode" style="display:none;">my_ggp + theme(axis.title.x = element_text(size = 20)) # x-axis title</p></div>
|
||
|
|
|
||
|
|
<p> </p>
|
||
|
|
<p><img src="https://statisticsglobe.com/wp-content/uploads/2019/09/figure-7-change-font-size-of-x-axis-title-ggplot2-r-plot.png" alt="r ggplot2 plot font size of x axis title" class="aligncenter size-full wp-image-1353" title="x-Axis Title"/></p>
|
||
|
|
<p style="text-align: center;"><em><strong>Figure 7: Changing Font Size of x-Axis Title.</strong></em></p>
|
||
|
|
<p> </p>
|
||
|
|
<p>…or only the y-axis title:</p>
|
||
|
|
|
||
|
|
<div class="wp_syntax" style="position:relative;"><table><tr><td class="code"><pre class="csharp" style="font-family:monospace;">my_ggp <span style="color: #008000;">+</span> theme<span style="color: #008000;">(</span>axis<span style="color: #008000;">.</span><span style="color: #0000FF;">title</span><span style="color: #008000;">.</span><span style="color: #0000FF;">y</span> <span style="color: #008000;">=</span> element_text<span style="color: #008000;">(</span>size <span style="color: #008000;">=</span> <span style="color: #FF0000;">20</span><span style="color: #008000;">)</span><span style="color: #008000;">)</span> <span style="color: #008080;"># y-axis title</span></pre></td></tr></table><p class="theCode" style="display:none;">my_ggp + theme(axis.title.y = element_text(size = 20)) # y-axis title</p></div>
|
||
|
|
|
||
|
|
<p> </p>
|
||
|
|
<p><img src="https://statisticsglobe.com/wp-content/uploads/2019/09/figure-8-change-font-size-of-y-axis-title-ggplot2-r-plot.png" alt="r ggplot2 plot font size of y axis title" class="aligncenter size-full wp-image-1353" title="y-Axis Title"/></p>
|
||
|
|
<p style="text-align: center;"><em><strong>Figure 8: Changing Font Size of y-Axis Title.</strong></em></p>
|
||
|
|
<p><a name="fourth"></a></p>
|
||
|
|
<p> </p>
|
||
|
|
<h2>Example 4: Change Font Size of Main Title</h2>
|
||
|
|
<p>In this example, you’ll learn how to change the font size of the main title of a ggplot. Have a look at the following R code and the corresponding barchart:</p>
|
||
|
|
|
||
|
|
<div class="wp_syntax" style="position:relative;"><table><tr><td class="code"><pre class="csharp" style="font-family:monospace;">my_ggp <span style="color: #008000;">+</span> theme<span style="color: #008000;">(</span>plot<span style="color: #008000;">.</span><span style="color: #0000FF;">title</span> <span style="color: #008000;">=</span> element_text<span style="color: #008000;">(</span>size <span style="color: #008000;">=</span> <span style="color: #FF0000;">20</span><span style="color: #008000;">)</span><span style="color: #008000;">)</span> <span style="color: #008080;"># Plot title size</span></pre></td></tr></table><p class="theCode" style="display:none;">my_ggp + theme(plot.title = element_text(size = 20)) # Plot title size</p></div>
|
||
|
|
|
||
|
|
<p> </p>
|
||
|
|
<p><img src="https://statisticsglobe.com/wp-content/uploads/2019/09/figure-9-change-font-size-of-main-title-ggplot2-r-plot.png" alt="r ggplot2 plot font size of main title" class="aligncenter size-full wp-image-1353" title="Main Title"/></p>
|
||
|
|
<p style="text-align: center;"><em><strong>Figure 9: Changing Font Size of Main Title.</strong></em></p>
|
||
|
|
<p><a name="fifth"></a></p>
|
||
|
|
<p> </p>
|
||
|
|
<h2>Example 5: Change Font Size of Legend</h2>
|
||
|
|
<p>We can also change how large the text elements of a ggplot2 legend are. With the following R syntax, we can increase the text size of the legend text:</p>
|
||
|
|
|
||
|
|
<div class="wp_syntax" style="position:relative;"><table><tr><td class="code"><pre class="csharp" style="font-family:monospace;">my_ggp <span style="color: #008000;">+</span> theme<span style="color: #008000;">(</span>legend<span style="color: #008000;">.</span><span style="color: #0000FF;">text</span> <span style="color: #008000;">=</span> element_text<span style="color: #008000;">(</span>size <span style="color: #008000;">=</span> <span style="color: #FF0000;">20</span><span style="color: #008000;">)</span><span style="color: #008000;">)</span> <span style="color: #008080;"># Legend text</span></pre></td></tr></table><p class="theCode" style="display:none;">my_ggp + theme(legend.text = element_text(size = 20)) # Legend text</p></div>
|
||
|
|
|
||
|
|
<p> </p>
|
||
|
|
<p><img src="https://statisticsglobe.com/wp-content/uploads/2019/09/figure-10-change-font-size-of-legend-text-ggplot2-r-plot.png" alt="r ggplot2 plot font size of legend text" class="aligncenter size-full wp-image-1353" title="Legend Text"/></p>
|
||
|
|
<p style="text-align: center;"><em><strong>Figure 10: Changing Font Size of Legend Text.</strong></em></p>
|
||
|
|
<p> </p>
|
||
|
|
<p>And with the following R code, we can change the size of the legend title:</p>
|
||
|
|
|
||
|
|
<div class="wp_syntax" style="position:relative;"><table><tr><td class="code"><pre class="csharp" style="font-family:monospace;">my_ggp <span style="color: #008000;">+</span> theme<span style="color: #008000;">(</span>legend<span style="color: #008000;">.</span><span style="color: #0000FF;">title</span> <span style="color: #008000;">=</span> element_text<span style="color: #008000;">(</span>size <span style="color: #008000;">=</span> <span style="color: #FF0000;">20</span><span style="color: #008000;">)</span><span style="color: #008000;">)</span> <span style="color: #008080;"># Legend title</span></pre></td></tr></table><p class="theCode" style="display:none;">my_ggp + theme(legend.title = element_text(size = 20)) # Legend title</p></div>
|
||
|
|
|
||
|
|
<p> </p>
|
||
|
|
<p><img src="https://statisticsglobe.com/wp-content/uploads/2019/09/figure-11-change-font-size-of-legend-title-ggplot2-r-plot.png" alt="r ggplot2 plot font size of legend title" class="aligncenter size-full wp-image-1353" title="Legend Title"/></p>
|
||
|
|
<p style="text-align: center;"><em><strong>Figure 11: Changing Font Size of Legend Title.</strong></em></p>
|
||
|
|
<p><a name="resources"></a></p>
|
||
|
|
<p> </p>
|
||
|
|
<h2>Video & Further Resources</h2>
|
||
|
|
<p>Do you want to learn more about font sizes of ggplot2 plots? Then you may want to have a look at the following video tutorial of my YouTube channel. I illustrate the R codes of this post in the video:</p>
|
||
|
|
<p> </p>
|
||
|
|
<div id="_ytid_34233" class="__youtube_prefs__ __youtube_prefs_gdpr__ " allowfullscreen data-no-lazy="1" data-skipgform_ajax_framebjll="">
|
||
|
|
<p><strong>Please accept YouTube cookies to play this video.</strong> By accepting you will be accessing content from YouTube, a service provided by an external third party.</p>
|
||
|
|
<p><img loading="lazy" src="https://statisticsglobe.com/wp-content/uploads/2020/09/YouTube-Tutorial-Preload-Thumbnail-R-Programming-Video.png" alt="YouTube Content Consent Button Thumbnail" width="1280" height="853" class="size-full wp-image-2556" title="Click Below to Accept YouTube Content" /></p>
|
||
|
|
<p><a href="https://policies.google.com/privacy" target="_blank" rel="noopener">YouTube privacy policy</a></p>
|
||
|
|
<p>If you accept this notice, your choice will be saved and the page will refresh.</p>
|
||
|
|
<p><button type="button" class="__youtube_prefs_gdpr__">Accept YouTube Content<img src="https://statisticsglobe.com/wp-content/plugins/youtube-embed-plus/images/icon-check.png" alt="accept" data-no-lazy="1" data-skipgform_ajax_framebjll="" /></button></div>
|
||
|
|
<p> </p>
|
||
|
|
<p>Furthermore, you might want to read some of the other tutorials of my homepage.</p>
|
||
|
|
<ul>
|
||
|
|
<li><a href="https://statisticsglobe.com/increase-font-size-in-plot-in-r">Increase Font Size in Base R Plot</a></li>
|
||
|
|
<li><a href="https://statisticsglobe.com/remove-axis-labels-and-ticks-of-ggplot2-plot-in-r">Remove Axis Labels & Ticks of ggplot2 Plot</a></li>
|
||
|
|
<li><a href="https://statisticsglobe.com/graphics-in-r">R Graphics Gallery</a></li>
|
||
|
|
<li><a href="https://statisticsglobe.com/r-programming-language/">The R Programming Language</a></li>
|
||
|
|
</ul>
|
||
|
|
<p> </p>
|
||
|
|
<p>On this page you learned how to <strong>increase the font size of too small text elements</strong> in R programming. If you have any further questions, please tell me about it in the comments below.</p>
|
||
|
|
<div class="awac-wrapper"><div class="awac widget text-65"> <div class="textwidget"><p> </p>
|
||
|
|
<div style="text-align: left; border: 3px double #1b98e0; padding: 1.2em;"><!-- Begin MailChimp Signup Form --></p>
|
||
|
|
<style type="text/css">
|
||
|
|
#mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }<br />
|
||
|
|
/* Add your own MailChimp form style overrides in your site stylesheet or in this style block.<br />
|
||
|
|
We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */<br />
|
||
|
|
</style>
|
||
|
|
<div id="mc_embed_signup">
|
||
|
|
<form id="mc-embedded-subscribe-form" class="validate" action="https://statisticsglobe.us18.list-manage.com/subscribe/post?u=e21bd5d10aa2be474db535a7b&id=841e4c86f0" method="post" name="mc-embedded-subscribe-form" novalidate="" target="_blank">
|
||
|
|
<div id="mc_embed_signup_scroll">
|
||
|
|
<p><span style="font-size: 32px;">Subscribe to my free statistics newsletter</span></p>
|
||
|
|
<p>Get regular updates on the latest tutorials, offers & news at Statistics Globe.<br />
|
||
|
|
I hate spam & you may opt out anytime: <a href="https://statisticsglobe.com/data-protection/" target="_blank" rel="noopener noreferrer nofollow">Privacy Policy</a>.</p>
|
||
|
|
<p><input id="mce-EMAIL" class="email" name="EMAIL" required="" type="email" value="" placeholder="email address" /><br />
|
||
|
|
<!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups--></p>
|
||
|
|
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input tabindex="-1" name="b_e21bd5d10aa2be474db535a7b_841e4c86f0" type="text" value="" /></div>
|
||
|
|
<div class="clear"><input id="mc-embedded-subscribe" class="button" name="subscribe" type="submit" value="Subscribe" /></div>
|
||
|
|
</div>
|
||
|
|
</form>
|
||
|
|
</div>
|
||
|
|
<p><!--End mc_embed_signup--></p>
|
||
|
|
</div>
|
||
|
|
<p><script type="text/javascript" src="//downloads.mailchimp.com/js/signup-forms/popup/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script><script type="text/javascript">require(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us18.list-manage.com","uuid":"e21bd5d10aa2be474db535a7b","lid":"841e4c86f0"}) })</script></p>
|
||
|
|
</div>
|
||
|
|
</div></div><div style="display: none;"
|
||
|
|
class="kk-star-ratings kksr-valign-bottom kksr-align-left "
|
||
|
|
data-id="4248"
|
||
|
|
data-slug="">
|
||
|
|
<div class="kksr-stars">
|
||
|
|
<div class="kksr-stars-inactive">
|
||
|
|
<div class="kksr-star" data-star="1">
|
||
|
|
<div class="kksr-icon" style="width: 30px; height: 30px;"></div>
|
||
|
|
</div>
|
||
|
|
<div class="kksr-star" data-star="2">
|
||
|
|
<div class="kksr-icon" style="width: 30px; height: 30px;"></div>
|
||
|
|
</div>
|
||
|
|
<div class="kksr-star" data-star="3">
|
||
|
|
<div class="kksr-icon" style="width: 30px; height: 30px;"></div>
|
||
|
|
</div>
|
||
|
|
<div class="kksr-star" data-star="4">
|
||
|
|
<div class="kksr-icon" style="width: 30px; height: 30px;"></div>
|
||
|
|
</div>
|
||
|
|
<div class="kksr-star" data-star="5">
|
||
|
|
<div class="kksr-icon" style="width: 30px; height: 30px;"></div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="kksr-stars-active" style="width: 150px;">
|
||
|
|
<div class="kksr-star">
|
||
|
|
<div class="kksr-icon" style="width: 30px; height: 30px;"></div>
|
||
|
|
</div>
|
||
|
|
<div class="kksr-star">
|
||
|
|
<div class="kksr-icon" style="width: 30px; height: 30px;"></div>
|
||
|
|
</div>
|
||
|
|
<div class="kksr-star">
|
||
|
|
<div class="kksr-icon" style="width: 30px; height: 30px;"></div>
|
||
|
|
</div>
|
||
|
|
<div class="kksr-star">
|
||
|
|
<div class="kksr-icon" style="width: 30px; height: 30px;"></div>
|
||
|
|
</div>
|
||
|
|
<div class="kksr-star">
|
||
|
|
<div class="kksr-icon" style="width: 30px; height: 30px;"></div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="kksr-legend">
|
||
|
|
<strong class="kksr-score">5</strong>
|
||
|
|
<span class="kksr-muted">/</span>
|
||
|
|
<strong>5</strong>
|
||
|
|
<span class="kksr-muted">(</span>
|
||
|
|
<strong class="kksr-count">5</strong>
|
||
|
|
<span class="kksr-muted">
|
||
|
|
votes </span>
|
||
|
|
<span class="kksr-muted">)</span>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div></section> <section class="l-section height_medium for_comments">
|
||
|
|
<div class="l-section-h i-cf"><div id="comments" class="w-comments">
|
||
|
|
<h4 class="w-comments-title">
|
||
|
|
<span>4 <span class="screen-reader-text">Comments</span>.</span> <a href="#respond">Leave new</a> </h4>
|
||
|
|
|
||
|
|
<ul class="w-comments-list">
|
||
|
|
<li class="comment even thread-even depth-1 w-comments-item" id="comment-1878">
|
||
|
|
<div class="w-comments-item-meta">
|
||
|
|
<div class="w-comments-item-icon">
|
||
|
|
<img alt='' src='https://secure.gravatar.com/avatar/94a40a1b0f0955bdb6e79914774de86a?s=50&d=mm&r=g' srcset='https://secure.gravatar.com/avatar/94a40a1b0f0955bdb6e79914774de86a?s=100&d=mm&r=g 2x' class='avatar avatar-50 photo' height='50' width='50' loading='lazy'/> </div>
|
||
|
|
<div class="w-comments-item-author"><span>Robert Cline SR</span></div>
|
||
|
|
<a class="w-comments-item-date smooth-scroll" href="#comment-1878">December 14, 2019 8:44 pm</a>
|
||
|
|
</div>
|
||
|
|
<div class="w-comments-item-text">
|
||
|
|
<p>I posted on your youtube channel a question: I am getting an error “font family not found in Windows font database.” Why am I getting this error and what is the solution? Thank you.</p>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<a rel='nofollow' class='comment-reply-link' href='#comment-1878' data-commentid="1878" data-postid="4248" data-belowelement="comment-1878" data-respondelement="respond" data-replyto="Reply to Robert Cline SR" aria-label='Reply to Robert Cline SR'>Reply</a><ul class="children">
|
||
|
|
<li class="comment byuser comment-author-gengenbach-it bypostauthor odd alt depth-2 w-comments-item" id="comment-1879">
|
||
|
|
<div class="w-comments-item-meta">
|
||
|
|
<a href="https://statisticsglobe.com/joachim-schork/" target="_blank" rel="noopener nofollow"> <div class="w-comments-item-icon">
|
||
|
|
<img alt='' src='https://secure.gravatar.com/avatar/a354e55b4ad45b9199ffbea7199aa73b?s=50&d=mm&r=g' srcset='https://secure.gravatar.com/avatar/a354e55b4ad45b9199ffbea7199aa73b?s=100&d=mm&r=g 2x' class='avatar avatar-50 photo' height='50' width='50' loading='lazy'/> </div>
|
||
|
|
<div class="w-comments-item-author"><span>Joachim</span></div>
|
||
|
|
</a> <a class="w-comments-item-date smooth-scroll" href="#comment-1879">December 15, 2019 11:38 am</a>
|
||
|
|
</div>
|
||
|
|
<div class="w-comments-item-text">
|
||
|
|
<p>Hi Robert,</p>
|
||
|
|
<p>Thank you for your question. I posted an answer to your YouTube comment: <a href="https://www.youtube.com/watch?v=H1TDXsQK38c&lc=z22tuvyydn2sdzzp504t1aokgagphl5vg0ky1ipwe3ykrk0h00410" rel="nofollow ugc">https://www.youtube.com/watch?v=H1TDXsQK38c&lc=z22tuvyydn2sdzzp504t1aokgagphl5vg0ky1ipwe3ykrk0h00410</a></p>
|
||
|
|
<p>Regards,</p>
|
||
|
|
<p>Joachim</p>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<a rel='nofollow' class='comment-reply-link' href='#comment-1879' data-commentid="1879" data-postid="4248" data-belowelement="comment-1879" data-respondelement="respond" data-replyto="Reply to Joachim" aria-label='Reply to Joachim'>Reply</a></li><!-- #comment-## -->
|
||
|
|
</ul><!-- .children -->
|
||
|
|
</li><!-- #comment-## -->
|
||
|
|
<li class="comment even thread-odd thread-alt depth-1 w-comments-item" id="comment-6894">
|
||
|
|
<div class="w-comments-item-meta">
|
||
|
|
<div class="w-comments-item-icon">
|
||
|
|
<img alt='' src='https://secure.gravatar.com/avatar/28fa7f3360c0b32d580ff4af583e9ca0?s=50&d=mm&r=g' srcset='https://secure.gravatar.com/avatar/28fa7f3360c0b32d580ff4af583e9ca0?s=100&d=mm&r=g 2x' class='avatar avatar-50 photo' height='50' width='50' loading='lazy'/> </div>
|
||
|
|
<div class="w-comments-item-author"><span>Santosh Kumar</span></div>
|
||
|
|
<a class="w-comments-item-date smooth-scroll" href="#comment-6894">June 21, 2020 7:35 am</a>
|
||
|
|
</div>
|
||
|
|
<div class="w-comments-item-text">
|
||
|
|
<p>Thanks.<br />
|
||
|
|
Very helpful.</p>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<a rel='nofollow' class='comment-reply-link' href='#comment-6894' data-commentid="6894" data-postid="4248" data-belowelement="comment-6894" data-respondelement="respond" data-replyto="Reply to Santosh Kumar" aria-label='Reply to Santosh Kumar'>Reply</a><ul class="children">
|
||
|
|
<li class="comment byuser comment-author-gengenbach-it bypostauthor odd alt depth-2 w-comments-item" id="comment-7315">
|
||
|
|
<div class="w-comments-item-meta">
|
||
|
|
<a href="https://statisticsglobe.com/joachim-schork/" target="_blank" rel="noopener nofollow"> <div class="w-comments-item-icon">
|
||
|
|
<img alt='' src='https://secure.gravatar.com/avatar/a354e55b4ad45b9199ffbea7199aa73b?s=50&d=mm&r=g' srcset='https://secure.gravatar.com/avatar/a354e55b4ad45b9199ffbea7199aa73b?s=100&d=mm&r=g 2x' class='avatar avatar-50 photo' height='50' width='50' loading='lazy'/> </div>
|
||
|
|
<div class="w-comments-item-author"><span>Joachim</span></div>
|
||
|
|
</a> <a class="w-comments-item-date smooth-scroll" href="#comment-7315">June 29, 2020 7:19 am</a>
|
||
|
|
</div>
|
||
|
|
<div class="w-comments-item-text">
|
||
|
|
<p>Thank you Santosh! 🙂</p>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<a rel='nofollow' class='comment-reply-link' href='#comment-7315' data-commentid="7315" data-postid="4248" data-belowelement="comment-7315" data-respondelement="respond" data-replyto="Reply to Joachim" aria-label='Reply to Joachim'>Reply</a></li><!-- #comment-## -->
|
||
|
|
</ul><!-- .children -->
|
||
|
|
</li><!-- #comment-## -->
|
||
|
|
</ul>
|
||
|
|
|
||
|
|
<div class="w-comments-pagination">
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div id="respond" class="comment-respond">
|
||
|
|
<h3 id="reply-title" class="comment-reply-title">Leave a Reply <small><a rel="nofollow" id="cancel-comment-reply-link" href="/change-font-size-of-ggplot2-plot-in-r-axis-text-main-title-legend#respond" style="display:none;">Cancel reply</a></small></h3><form action="https://statisticsglobe.com/wp-comments-post.php" method="post" id="commentform" class="comment-form" novalidate><p class="comment-notes"><span id="email-notes">Your email address will not be published.</span> Required fields are marked <span class="required">*</span></p><div class="w-form-row for_textarea required">
|
||
|
|
<div class="w-form-row-field">
|
||
|
|
<textarea aria-label="Comment" name="comment" placeholder="Comment *" data-required="true" aria-required="true"></textarea>
|
||
|
|
</div>
|
||
|
|
<div class="w-form-row-state">Fill out this field</div>
|
||
|
|
</div>
|
||
|
|
<div class="w-form-row for_text required">
|
||
|
|
<div class="w-form-row-field">
|
||
|
|
<input aria-label="Name" type="text" name="author" value placeholder="Name *" data-required="true" aria-required="true"/>
|
||
|
|
</div>
|
||
|
|
<div class="w-form-row-state">Fill out this field</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="w-form-row for_email required">
|
||
|
|
<div class="w-form-row-field">
|
||
|
|
<input aria-label="Email" type="email" name="email" value placeholder="Email *" data-required="true" aria-required="true"/>
|
||
|
|
</div>
|
||
|
|
<div class="w-form-row-state">Please enter a valid email address.</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<p class="form-submit"><button type="submit" class="w-btn us-btn-style_1"><span class="w-btn-label">Post Comment</span></button> <input type='hidden' name='comment_post_ID' value='4248' id='comment_post_ID' />
|
||
|
|
<input type='hidden' name='comment_parent' id='comment_parent' value='0' />
|
||
|
|
</p><p style="display: none;"><input type="hidden" id="akismet_comment_nonce" name="akismet_comment_nonce" value="cd86ce9d72" /></p><p style="display: none;"><input type="hidden" id="ak_js" name="ak_js" value="141"/></p></form> </div><!-- #respond -->
|
||
|
|
<div class="us-comments-json hidden" onclick='return {"no_content_msg":"Fill out this field","no_name_msg":"Fill out this field","no_email_msg":"Please enter a valid email address."}'></div></div>
|
||
|
|
</div>
|
||
|
|
</section></div></div></div><div class="vc_col-sm-3 vc_column_container l-sidebar"><div class="vc_column-inner"><div class="wpb_wrapper"><div id="text-50" class="widget widget_text"> <div class="textwidget"><div class='content-column one_third'><div style="padding:5px 5px 5px 5px;"><p><a href="https://statisticsglobe.com/joachim-schork/"><img src="https://statisticsglobe.com/wp-content/uploads/2020/08/Joachim-Schork-Statistics-Globe-tiny.jpg" alt="Joachim Schork Statistician Programmer" width="350" class="circle-image aligncenter size-thumbnail wp-image-1758" title="Joachim Schork - Founder of Statistics Globe"/></a></p></div></div>
|
||
|
|
<div class='content-column two_third last_column'><div style="padding:5px 5px 5px 5px;"><p>I’m Joachim Schork. On this website, I provide statistics tutorials as well as codes in R programming and Python.</p></div></div><div class='clear_column'></div>
|
||
|
|
</div>
|
||
|
|
</div><div id="mc4wp_form_widget-5" class="widget widget_mc4wp_form_widget"><h3 class="widgettitle">Subscribe to my free statistics newsletter:</h3><script>(function() {
|
||
|
|
window.mc4wp = window.mc4wp || {
|
||
|
|
listeners: [],
|
||
|
|
forms: {
|
||
|
|
on: function(evt, cb) {
|
||
|
|
window.mc4wp.listeners.push(
|
||
|
|
{
|
||
|
|
event : evt,
|
||
|
|
callback: cb
|
||
|
|
}
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
})();
|
||
|
|
</script><!-- Mailchimp for WordPress v4.8.1 - https://wordpress.org/plugins/mailchimp-for-wp/ --><form id="mc4wp-form-1" class="mc4wp-form mc4wp-form-1960" method="post" data-id="1960" data-name="" ><div class="mc4wp-form-fields"><p>
|
||
|
|
Get regular updates on the latest tutorials, offers & news at Statistics Globe. I hate spam & you may opt out anytime: <a href="https://statisticsglobe.com/data-protection/" rel="noopener noreferrer nofollow" target="_blank">Privacy Policy</a>.
|
||
|
|
</p>
|
||
|
|
<p>
|
||
|
|
<input type="email" name="EMAIL" placeholder="email address" required />
|
||
|
|
</p>
|
||
|
|
|
||
|
|
<p>
|
||
|
|
<input type="submit" value="Subscribe" />
|
||
|
|
</p></div><label style="display: none !important;">Leave this field empty if you're human: <input type="text" name="_mc4wp_honeypot" value="" tabindex="-1" autocomplete="off" /></label><input type="hidden" name="_mc4wp_timestamp" value="1604598062" /><input type="hidden" name="_mc4wp_form_id" value="1960" /><input type="hidden" name="_mc4wp_form_element_id" value="mc4wp-form-1" /><div class="mc4wp-response"></div></form><!-- / Mailchimp for WordPress Plugin --></div><div id="text-15" class="widget widget_text"> <div class="textwidget"><p> </p>
|
||
|
|
</div>
|
||
|
|
</div><div id="widget_tpg_post_grid-18" class="widget widget_tpg_post_grid"><h3 class="widgettitle">Related Tutorials</h3><style type='text/css' media='all'>#rt-tpg-container-969156277 .rt-holder .rt-woo-info .price{color:#353436;}body .rt-tpg-container .rt-tpg-isotope-buttons .selected,
|
||
|
|
#rt-tpg-container-969156277 .layout12 .rt-holder:hover .rt-detail,
|
||
|
|
#rt-tpg-container-969156277 .isotope8 .rt-holder:hover .rt-detail,
|
||
|
|
#rt-tpg-container-969156277 .carousel8 .rt-holder:hover .rt-detail,
|
||
|
|
#rt-tpg-container-969156277 .layout13 .rt-holder .overlay .post-info,
|
||
|
|
#rt-tpg-container-969156277 .isotope9 .rt-holder .overlay .post-info,
|
||
|
|
#rt-tpg-container-969156277.rt-tpg-container .layout4 .rt-holder .rt-detail,
|
||
|
|
.rt-modal-969156277 .md-content,
|
||
|
|
.rt-modal-969156277 .md-content > .rt-md-content-holder .rt-md-content,
|
||
|
|
.rt-popup-wrap-969156277.rt-popup-wrap .rt-popup-navigation-wrap,
|
||
|
|
#rt-tpg-container-969156277 .carousel9 .rt-holder .overlay .post-info{background-color:#353436;}#rt-tpg-container-969156277 .layout5 .rt-holder .overlay, #rt-tpg-container-969156277 .isotope2 .rt-holder .overlay, #rt-tpg-container-969156277 .carousel2 .rt-holder .overlay,#rt-tpg-container-969156277 .layout15 .rt-holder h3, #rt-tpg-container-969156277 .isotope11 .rt-holder h3, #rt-tpg-container-969156277 .carousel11 .rt-holder h3, #rt-tpg-container-969156277 .layout16 .rt-holder h3,
|
||
|
|
#rt-tpg-container-969156277 .isotope12 .rt-holder h3, #rt-tpg-container-969156277 .carousel12 .rt-holder h3 {background-color:rgba(53,52,54,0.1);}#rt-tpg-container-969156277 [class*='rt-col-'] {padding-left : 1px;padding-right : 1px;margin-top : 1px;margin-bottom : 1px;}#rt-tpg-container-969156277 .rt-row{margin-left : -1px;margin-right : -1px;}#rt-tpg-container-969156277.rt-container-fluid,#rt-tpg-container-969156277.rt-container{padding-left : 1px;padding-right : 1px;}#rt-tpg-container-969156277 .read-more{border-radius:px;}#rt-tpg-container-969156277 .layout2 .rt-holder h3.entry-title,#rt-tpg-container-969156277 .layout2 .rt-holder h3.entry-title a,#rt-tpg-container-969156277 .rt-holder .rt-woo-info h3 a,#rt-tpg-container-969156277 .rt-holder .rt-woo-info h3{color:#1b98e0;font-size:16px;text-align:center;}#rt-tpg-container-969156277 .layout2 .rt-holder h3.entry-title:hover,
|
||
|
|
#rt-tpg-container-969156277 .layout2 .rt-holder h3.entry-title a:hover,
|
||
|
|
#rt-tpg-container-969156277 .rt-holder .rt-woo-info h3 a:hover,
|
||
|
|
#rt-tpg-container-969156277 .rt-holder .rt-woo-info h3:hover{color:#1b98e0 !important;}</style><div class='rt-container-fluid rt-tpg-container ' id='rt-tpg-container-969156277' data-layout='layout2' data-desktop-col='1' data-tab-col='1' data-mobile-col='1' data-sc-id='3382'><div data-title='Loading ...' class='rt-row rt-content-loader layout2 tpg-even '><div class='rt-col-md-12 rt-col-sm-12 rt-col-xs-12 even-grid-item rt-grid-item' data-id='5294'><div class="rt-holder"><div class="rt-row"><div class='rt-col-sm-4 rt-col-xs-12 '><div class="rt-img-holder"><a data-id='5294' class='' href='https://statisticsglobe.com/change-background-color-of-ggplot2-plot-in-r'><img class='rt-img-responsive' src='https://statisticsglobe.com/wp-content/uploads/2020/06/figure-2-ggplot2-change-panel-colors-in-R-programming-language-350x250.png' alt='Change Background Color of ggplot2 Plot in R (3 Examples)'></a></div></div><div class='rt-col-sm-8 rt-col-xs-12 '><div class='rt-detail'><h3 class='entry-title'><a data-id='5294' class='' href='https://statisticsglobe.com/change-background-color-of-ggplot2-plot-in-r'>Change Background Color of ggplot2 Plot in R (3 Examples)</a></h3></div></div></div></div></div><div class='rt-col-md-12 rt-col-sm-12 rt-col-xs-12 even-grid-item rt-grid-item' data-id='2776'><div class="rt-holder"><div class="rt-row"><div class='rt-col-sm-4 rt-col-xs-12 '><div class="rt-img-holder"><a data-id='2776' class='' href='https://statisticsglobe.com/r-change-position-of-ggplot-title'><img class='rt-img-responsive' src='https://statisticsglobe.com/wp-content/uploads/2019/04/Feature-Image-ggplot2-Title-Center-in-R-350x250.png' alt='Change Position of ggplot Title in R (4 Examples) | Adjust to Center, Right-Aligned or Vertical Positioning'></a></div></div><div class='rt-col-sm-8 rt-col-xs-12 '><div class='rt-detail'><h3 class='entry-title'><a data-id='2776' class='' href='https://statisticsglobe.com/r-change-position-of-ggplot-title'>Change Position of ggplot Title in R (4 Examples) | Adjust to Center, Right-Aligned or Vertical Positioning</a></h3></div></div></div></div></div><div class='rt-col-md-12 rt-col-sm-12 rt-col-xs-12 even-grid-item rt-grid-item' data-id='7850'><div class="rt-holder"><div class="rt-row"><div class='rt-col-sm-4 rt-col-xs-12 '><div class="rt-img-holder"><a data-id='7850' class='' href='https://statisticsglobe.com/error-discrete-value-supplied-to-continuous-scale-in-r'><img class='rt-img-responsive' src='https://statisticsglobe.com/wp-content/uploads/2020/10/Error-Discrete-Value-Supplied-to-Continuous-Scale-FI-350x250.png' alt='R ggplot2 Error: Discrete Value Supplied to Continuous Scale (2 Examples)'></a></div></div><div class='rt-col-sm-8 rt-col-xs-12 '><div class='rt-detail'><h3 class='entry-title'><a data-id='7850' class='' href='https://statisticsglobe.com/error-discrete-value-supplied-to-continuous-scale-in-r'>R ggplot2 Error: Discrete Value Supplied to Continuous Scale (2 Examples)</a></h3></div></div></div></div></div><div class='rt-col-md-12 rt-col-sm-12 rt-col-xs-12 even-grid-item rt-grid-item' data-id='2749'><div class="rt-holder"><div class="rt-row"><div class='rt-col-sm-4 rt-col-xs-12 '><div class="rt-img-holder"><a data-id='2749' class='' href='https://statisticsglobe.com/remove-legend-ggplot2-r'><img class='rt-img-responsive' src='https://statisticsglobe.com/wp-content/uploads/2019/04/ggplot2-with-2-legends-in-R-Feature-Image-350x250.png' alt='Remove Legend in ggplot2 (3 Example Codes) | Delete One or All Legends'></a></div></div><div class='rt-col-sm-8 rt-col-xs-12 '><div class='rt-detail'><h3 class='entry-title'><a data-id='2749' class='' href='https://statisticsglobe.com/remove-legend-ggplot2-r'>Remove Legend in ggplot2 (3 Example Codes) | Delete One or All Legends</a></h3></div></div></div></div></div><div class='rt-col-md-12 rt-col-sm-12 rt-col-xs-12 even-grid-item rt-grid-item' data-id='5680'><div class="rt-holder"><div class="rt-row"><div class='rt-col-sm-4 rt-col-xs-12 '><div class="rt-img-holder"><a data-id='5680' class='' href='https://statisticsglobe.com/left-a
|
||
|
|
|
||
|
|
</div>
|
||
|
|
<footer id="page-footer" class="l-footer" itemscope itemtype="https://schema.org/WPFooter">
|
||
|
|
<section class="l-section wpb_row height_medium color_footer-bottom"><div class="l-section-h i-cf"><div class="g-cols vc_row type_default valign_top"><div class="vc_col-sm-12 wpb_column vc_column_container"><div class="vc_column-inner"><div class="wpb_wrapper"><div class="wpb_text_column" ><div class="wpb_wrapper"><p style="text-align: center;"><span style="color: #a1a1a1;">© Copyright Statistics Globe – </span><a href="https://statisticsglobe.com/legal-notice/"><span style="color: #e3e3e3;"><span style="color: #b8b8b8;"><span style="color: #a1a1a1;">Legal Notice</span></span></span></a> & <a href="https://statisticsglobe.com/data-protection/"><span style="color: #e3e3e3;"><span style="color: #b8b8b8;"><span style="color: #a1a1a1;">Privacy Policy</span></span></span></a></p>
|
||
|
|
</div></div></div></div></div></div></div></section>
|
||
|
|
</footer>
|
||
|
|
<a class="w-header-show" href="javascript:void(0);"><span>Menu</span></a>
|
||
|
|
<div class="w-header-overlay"></div>
|
||
|
|
<script>
|
||
|
|
// Store some global theme options used in JS
|
||
|
|
if ( window.$us === undefined ) {
|
||
|
|
window.$us = {};
|
||
|
|
}
|
||
|
|
$us.canvasOptions = ( $us.canvasOptions || {} );
|
||
|
|
$us.canvasOptions.disableEffectsWidth = 900;
|
||
|
|
$us.canvasOptions.columnsStackingWidth = 768;
|
||
|
|
$us.canvasOptions.responsive = true;
|
||
|
|
$us.canvasOptions.backToTopDisplay = 100;
|
||
|
|
$us.canvasOptions.scrollDuration = 1000;
|
||
|
|
|
||
|
|
$us.langOptions = ( $us.langOptions || {} );
|
||
|
|
$us.langOptions.magnificPopup = ( $us.langOptions.magnificPopup || {} );
|
||
|
|
$us.langOptions.magnificPopup.tPrev = 'Previous (Left arrow key)';
|
||
|
|
$us.langOptions.magnificPopup.tNext = 'Next (Right arrow key)';
|
||
|
|
$us.langOptions.magnificPopup.tCounter = '%curr% of %total%';
|
||
|
|
|
||
|
|
$us.navOptions = ( $us.navOptions || {} );
|
||
|
|
$us.navOptions.mobileWidth = 900;
|
||
|
|
$us.navOptions.togglable = true;
|
||
|
|
$us.ajaxLoadJs = true;
|
||
|
|
$us.lazyLoad = false;
|
||
|
|
$us.templateDirectoryUri = 'https://statisticsglobe.com/wp-content/themes/Impreza';
|
||
|
|
</script>
|
||
|
|
<script>if ( window.$us === undefined ) window.$us = {};$us.headerSettings = {"default":{"options":{"breakpoint":"900","orientation":"hor","sticky":"1","sticky_auto_hide":false,"scroll_breakpoint":"100","transparent":"0","width":"300px","elm_align":"center","shadow":"thin","top_show":"0","top_height":"40px","top_sticky_height":"0px","top_fullwidth":"0","top_centering":"","top_bg_color":"_header_top_bg","top_text_color":"_header_top_text","top_text_hover_color":"_header_top_text_hover","top_transparent_bg_color":"_header_top_transparent_bg","top_transparent_text_color":"_header_top_transparent_text","top_transparent_text_hover_color":"_header_transparent_text_hover","middle_height":"50px","middle_sticky_height":"50px","middle_fullwidth":"0","middle_centering":"","elm_valign":"top","bg_img":"","bg_img_wrapper_start":"","bg_img_size":"cover","bg_img_repeat":"repeat","bg_img_position":"top left","bg_img_attachment":"1","bg_img_wrapper_end":"","middle_bg_color":"_header_middle_bg","middle_text_color":"_header_middle_text","middle_text_hover_color":"_header_middle_text_hover","middle_transparent_bg_color":"_header_transparent_bg","middle_transparent_text_color":"_header_transparent_text","middle_transparent_text_hover_color":"_header_transparent_text_hover","bottom_show":"0","bottom_height":"50px","bottom_sticky_height":"50px","bottom_fullwidth":"0","bottom_centering":"","bottom_bg_color":"#353436","bottom_text_color":"#ebebeb","bottom_text_hover_color":"#1b98e0","bottom_transparent_bg_color":"_header_transparent_bg","bottom_transparent_text_color":"_header_transparent_text","bottom_transparent_text_hover_color":"_header_transparent_text_hover","bgimage_wrapper_end":""},"layout":{"top_left":[],"top_center":[],"top_right":[],"middle_left":["image:5","text:1"],"middle_center":["menu:1","search:1"],"middle_right":["image:2","image:3","image:6","image:4"],"bottom_left":[],"bottom_center":[],"bottom_right":[],"hidden":["image:1","text:2","text:3","text:4","socials:1","dropdown:1"]}},"tablets":{"options":{"breakpoint":"933px","orientation":"hor","sticky":"1","sticky_auto_hide":false,"scroll_breakpoint":"100px","transparent":"0","width":"300px","elm_align":"center","shadow":"thin","top_show":"0","top_height":"40px","top_sticky_height":"40px","top_fullwidth":"0","top_centering":"","top_bg_color":"_header_top_bg","top_text_color":"_header_top_text","top_text_hover_color":"_header_top_text_hover","top_transparent_bg_color":"_header_top_transparent_bg","top_transparent_text_color":"_header_top_transparent_text","top_transparent_text_hover_color":"_header_transparent_text_hover","middle_height":"80px","middle_sticky_height":"50px","middle_fullwidth":"0","middle_centering":"","elm_valign":"top","bg_img":"","bg_img_wrapper_start":"","bg_img_size":"cover","bg_img_repeat":"repeat","bg_img_position":"top left","bg_img_attachment":"1","bg_img_wrapper_end":"","middle_bg_color":"_header_middle_bg","middle_text_color":"_header_middle_text","middle_text_hover_color":"_header_middle_text_hover","middle_transparent_bg_color":"_header_transparent_bg","middle_transparent_text_color":"_header_transparent_text","middle_transparent_text_hover_color":"_header_transparent_text_hover","bottom_show":"0","bottom_height":"50px","bottom_sticky_height":"50px","bottom_fullwidth":"0","bottom_centering":"","bottom_bg_color":"#353436","bottom_text_color":"#ebebeb","bottom_text_hover_color":"#1b98e0","bottom_transparent_bg_color":"_header_transparent_bg","bottom_transparent_text_color":"_header_transparent_text","bottom_transparent_text_hover_color":"_header_transparent_text_hover","bgimage_wrapper_end":""},"layout":{"top_left":[],"top_center":[],"top_right":[],"middle_left":["image:5","text:1"],"middle_center":["menu:1","search:1"],"middle_right":["image:2","image:3","image:6","image:4"],"bottom_left":[],"bottom_center":[],"bottom_right":[],"hidden":["image:1","text:2","text:3","text:4","socials:1","dropdown:1"]}},"mobiles":{"options":{"breakpoint":"614px","orientation":"hor","sticky":"1","sticky_auto_hide":false,"scroll_breakpoint":"50","transparent":"0","width":"3
|
||
|
|
<script>(function() {function maybePrefixUrlField() {
|
||
|
|
if (this.value.trim() !== '' && this.value.indexOf('http') !== 0) {
|
||
|
|
this.value = "http://" + this.value;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
var urlFields = document.querySelectorAll('.mc4wp-form input[type="url"]');
|
||
|
|
if (urlFields) {
|
||
|
|
for (var j=0; j < urlFields.length; j++) {
|
||
|
|
urlFields[j].addEventListener('blur', maybePrefixUrlField);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
})();</script><link rel='stylesheet' id='rt-owl-carousel-css' href='https://statisticsglobe.com/wp-content/plugins/MTU3NDIzMTkyMzpmNmNjYzRiZDMwY2ZhYmFhNTdlZWE3NDE2MWE2ZTc3ZTozMjY1OmQyMjdlY2ZiOGMyYTA3NTYxODhjMzE4MmJmNzZmZDEwOmh0dHBzQC8vc3RhdGlzdGljc2dsb2JlLmNvbTow-VpvwuG/assets/vendor/owl-carousel/owl.carousel.min.css?ver=3.6.11' type='text/css' media='all' />
|
||
|
|
<link rel='stylesheet' id='rt-owl-carousel-theme-css' href='https://statisticsglobe.com/wp-content/plugins/MTU3NDIzMTkyMzpmNmNjYzRiZDMwY2ZhYmFhNTdlZWE3NDE2MWE2ZTc3ZTozMjY1OmQyMjdlY2ZiOGMyYTA3NTYxODhjMzE4MmJmNzZmZDEwOmh0dHBzQC8vc3RhdGlzdGljc2dsb2JlLmNvbTow-VpvwuG/assets/vendor/owl-carousel/owl.theme.default.min.css?ver=3.6.11' type='text/css' media='all' />
|
||
|
|
<link rel='stylesheet' id='rt-scrollbar-css' href='https://statisticsglobe.com/wp-content/plugins/MTU3NDIzMTkyMzpmNmNjYzRiZDMwY2ZhYmFhNTdlZWE3NDE2MWE2ZTc3ZTozMjY1OmQyMjdlY2ZiOGMyYTA3NTYxODhjMzE4MmJmNzZmZDEwOmh0dHBzQC8vc3RhdGlzdGljc2dsb2JlLmNvbTow-VpvwuG/assets/vendor/scrollbar/jquery.mCustomScrollbar.min.css?ver=3.6.11' type='text/css' media='all' />
|
||
|
|
<link rel='stylesheet' id='rt-fontawsome-css' href='https://statisticsglobe.com/wp-content/plugins/MTU3NDIzMTkyMzpmNmNjYzRiZDMwY2ZhYmFhNTdlZWE3NDE2MWE2ZTc3ZTozMjY1OmQyMjdlY2ZiOGMyYTA3NTYxODhjMzE4MmJmNzZmZDEwOmh0dHBzQC8vc3RhdGlzdGljc2dsb2JlLmNvbTow-VpvwuG/assets/vendor/font-awesome/css/font-awesome.min.css?ver=3.6.11' type='text/css' media='all' />
|
||
|
|
<link rel='stylesheet' id='rt-magnific-popup-css' href='https://statisticsglobe.com/wp-content/plugins/MTU3NDIzMTkyMzpmNmNjYzRiZDMwY2ZhYmFhNTdlZWE3NDE2MWE2ZTc3ZTozMjY1OmQyMjdlY2ZiOGMyYTA3NTYxODhjMzE4MmJmNzZmZDEwOmh0dHBzQC8vc3RhdGlzdGljc2dsb2JlLmNvbTow-VpvwuG/assets/vendor/Magnific-Popup/magnific-popup.css?ver=3.6.11' type='text/css' media='all' />
|
||
|
|
<script type='text/javascript' src='https://statisticsglobe.com/wp-content/plugins/jquery-smooth-scroll/js/script.min.js?ver=5.5.3' id='jquery-smooth-scroll-js'></script>
|
||
|
|
<script type='text/javascript' id='kk-star-ratings-js-extra'>
|
||
|
|
/* <![CDATA[ */
|
||
|
|
var kk_star_ratings = {"action":"kk-star-ratings","endpoint":"https:\/\/statisticsglobe.com\/wp-admin\/admin-ajax.php","nonce":"df7b20310f"};
|
||
|
|
/* ]]> */
|
||
|
|
</script>
|
||
|
|
<script type='text/javascript' src='https://statisticsglobe.com/wp-content/plugins/kk-star-ratings/public/js/kk-star-ratings.js?ver=4.1.3' id='kk-star-ratings-js'></script>
|
||
|
|
<script type='text/javascript' src='https://statisticsglobe.com/wp-content/plugins/wp-syntax/js/wp-syntax.js?ver=1.1' id='wp-syntax-js-js'></script>
|
||
|
|
<script type='text/javascript' src='https://statisticsglobe.com/wp-content/themes/Impreza/js/us.core.min.js?ver=7.8.4' id='us-core-js'></script>
|
||
|
|
<script type='text/javascript' src='https://statisticsglobe.com/wp-content/plugins/youtube-embed-plus/scripts/fitvids.min.js?ver=13.4.1.1' id='__ytprefsfitvids__-js'></script>
|
||
|
|
<script type='text/javascript' src='https://statisticsglobe.com/wp-includes/js/wp-embed.min.js?ver=5.5.3' id='wp-embed-js'></script>
|
||
|
|
<script type='text/javascript' src='https://statisticsglobe.com/wp-includes/js/comment-reply.min.js?ver=5.5.3' id='comment-reply-js'></script>
|
||
|
|
<script async="async" type='text/javascript' src='https://statisticsglobe.com/wp-content/plugins/akismet/_inc/form.js?ver=4.1.7' id='akismet-form-js'></script>
|
||
|
|
<script type='text/javascript' src='https://statisticsglobe.com/wp-content/plugins/mailchimp-for-wp/assets/js/forms.min.js?ver=4.8.1' id='mc4wp-forms-api-js'></script>
|
||
|
|
<script type='text/javascript' src='https://statisticsglobe.com/wp-content/plugins/MTU3NDIzMTkyMzpmNmNjYzRiZDMwY2ZhYmFhNTdlZWE3NDE2MWE2ZTc3ZTozMjY1OmQyMjdlY2ZiOGMyYTA3NTYxODhjMzE4MmJmNzZmZDEwOmh0dHBzQC8vc3RhdGlzdGljc2dsb2JlLmNvbTow-VpvwuG/assets/vendor/isotope/imagesloaded.pkgd.min.js?ver=3.6.11' id='rt-image-load-js-js'></script>
|
||
|
|
<script type='text/javascript' src='https://statisticsglobe.com/wp-content/plugins/MTU3NDIzMTkyMzpmNmNjYzRiZDMwY2ZhYmFhNTdlZWE3NDE2MWE2ZTc3ZTozMjY1OmQyMjdlY2ZiOGMyYTA3NTYxODhjMzE4MmJmNzZmZDEwOmh0dHBzQC8vc3RhdGlzdGljc2dsb2JlLmNvbTow-VpvwuG/assets/vendor/isotope/isotope.pkgd.min.js?ver=3.6.11' id='rt-isotope-js-js'></script>
|
||
|
|
<script type='text/javascript' src='https://statisticsglobe.com/wp-content/plugins/MTU3NDIzMTkyMzpmNmNjYzRiZDMwY2ZhYmFhNTdlZWE3NDE2MWE2ZTc3ZTozMjY1OmQyMjdlY2ZiOGMyYTA3NTYxODhjMzE4MmJmNzZmZDEwOmh0dHBzQC8vc3RhdGlzdGljc2dsb2JlLmNvbTow-VpvwuG/assets/js/pagination.min.js?ver=3.6.11' id='rt-pagination-js'></script>
|
||
|
|
<script type='text/javascript' src='https://statisticsglobe.com/wp-content/plugins/MTU3NDIzMTkyMzpmNmNjYzRiZDMwY2ZhYmFhNTdlZWE3NDE2MWE2ZTc3ZTozMjY1OmQyMjdlY2ZiOGMyYTA3NTYxODhjMzE4MmJmNzZmZDEwOmh0dHBzQC8vc3RhdGlzdGljc2dsb2JlLmNvbTow-VpvwuG/assets/vendor/owl-carousel/owl.carousel.min.js?ver=3.6.11' id='rt-owl-carousel-js'></script>
|
||
|
|
<script type='text/javascript' src='https://statisticsglobe.com/wp-content/plugins/MTU3NDIzMTkyMzpmNmNjYzRiZDMwY2ZhYmFhNTdlZWE3NDE2MWE2ZTc3ZTozMjY1OmQyMjdlY2ZiOGMyYTA3NTYxODhjMzE4MmJmNzZmZDEwOmh0dHBzQC8vc3RhdGlzdGljc2dsb2JlLmNvbTow-VpvwuG/assets/vendor/jquery.mousewheel.min.js?ver=3.1.13' id='jquery-mousewheel-js'></script>
|
||
|
|
<script type='text/javascript' src='https://statisticsglobe.com/wp-content/plugins/MTU3NDIzMTkyMzpmNmNjYzRiZDMwY2ZhYmFhNTdlZWE3NDE2MWE2ZTc3ZTozMjY1OmQyMjdlY2ZiOGMyYTA3NTYxODhjMzE4MmJmNzZmZDEwOmh0dHBzQC8vc3RhdGlzdGljc2dsb2JlLmNvbTow-VpvwuG/assets/vendor/scrollbar/jquery.mCustomScrollbar.min.js?ver=3.1.5' id='rt-scrollbar-js'></script>
|
||
|
|
<script type='text/javascript' src='https://statisticsglobe.com/wp-content/plugins/MTU3NDIzMTkyMzpmNmNjYzRiZDMwY2ZhYmFhNTdlZWE3NDE2MWE2ZTc3ZTozMjY1OmQyMjdlY2ZiOGMyYTA3NTYxODhjMzE4MmJmNzZmZDEwOmh0dHBzQC8vc3RhdGlzdGljc2dsb2JlLmNvbTow-VpvwuG/assets/vendor/Magnific-Popup/jquery.magnific-popup.min.js?ver=3.6.11' id='rt-magnific-popup-js'></script>
|
||
|
|
<script type='text/javascript' src='https://statisticsglobe.com/wp-content/plugins/MTU3NDIzMTkyMzpmNmNjYzRiZDMwY2ZhYmFhNTdlZWE3NDE2MWE2ZTc3ZTozMjY1OmQyMjdlY2ZiOGMyYTA3NTYxODhjMzE4MmJmNzZmZDEwOmh0dHBzQC8vc3RhdGlzdGljc2dsb2JlLmNvbTow-VpvwuG/assets/vendor/actual-height/jquery.actual.min.js?ver=1.0.19' id='rt-actual-height-js-js'></script>
|
||
|
|
<script type='text/javascript' id='rt-tpg-js-extra'>
|
||
|
|
/* <![CDATA[ */
|
||
|
|
var rttpg = {"nonceID":"rttpg_nonce","nonce":"9b420f84ac","ajaxurl":"https:\/\/statisticsglobe.com\/wp-admin\/admin-ajax.php"};
|
||
|
|
/* ]]> */
|
||
|
|
</script>
|
||
|
|
<script type='text/javascript' src='https://statisticsglobe.com/wp-content/plugins/MTU3NDIzMTkyMzpmNmNjYzRiZDMwY2ZhYmFhNTdlZWE3NDE2MWE2ZTc3ZTozMjY1OmQyMjdlY2ZiOGMyYTA3NTYxODhjMzE4MmJmNzZmZDEwOmh0dHBzQC8vc3RhdGlzdGljc2dsb2JlLmNvbTow-VpvwuG/assets/js/rttpg.js?ver=3.6.11' id='rt-tpg-js'></script>
|
||
|
|
<script type='text/javascript' id='rt-tpg-js-after'>
|
||
|
|
(function($){
|
||
|
|
$('.rt-tpg-container').on('tpg_item_before_load', function(){});
|
||
|
|
$('.rt-tpg-container').on('tpg_item_after_load', function(){});
|
||
|
|
$('.rt-tpg-container').on('tpg_loaded', function(){});
|
||
|
|
})(jQuery);
|
||
|
|
</script>
|
||
|
|
</body>
|
||
|
|
</html>
|