{"id":10747,"date":"2019-11-23T08:59:22","date_gmt":"2019-11-23T06:59:22","guid":{"rendered":"https:\/\/www.datanovia.com\/en\/?p=10747"},"modified":"2019-11-23T08:59:22","modified_gmt":"2019-11-23T06:59:22","slug":"comment-installer-ggplot2-dans-r","status":"publish","type":"post","link":"https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/","title":{"rendered":"Comment Installer GGPLOT2 dans R"},"content":{"rendered":"<div id=\"rdoc\">\n<p>Cet article d\u00e9crit comment <strong>installer ggplot2 dans R<\/strong>.<\/p>\n<p>Sommaire:<\/p>\n<div id=\"TOC\">\n<ul>\n<li><a href=\"#installation-de-ggplot2\">Installation de ggplot2<\/a><\/li>\n<li><a href=\"#utilisation-de-ggplot2\">Utilisation de ggplot2<\/a><\/li>\n<\/ul>\n<\/div>\n<div class='dt-sc-hr-invisible-medium  '><\/div>\n<div class='dt-sc-ico-content type1'><div class='custom-icon' ><a href='https:\/\/www.datanovia.com\/en\/fr\/produit\/ggplot2-lessentiel-pour-une-visualisation-magnifique-des-donnees-dans-r\/' target='_blank'><span class='fa fa-book'><\/span><\/a><\/div><h4><a href='https:\/\/www.datanovia.com\/en\/fr\/produit\/ggplot2-lessentiel-pour-une-visualisation-magnifique-des-donnees-dans-r\/' target='_blank'> Livre Apparent\u00e9 <\/a><\/h4>GGPLOT2 - L\u2019Essentiel pour une Visualisation Magnifique des Donn\u00e9es dans R<\/div>\n<div class='dt-sc-hr-invisible-medium  '><\/div>\n<div id=\"installation-de-ggplot2\" class=\"section level2\">\n<h2>Installation de ggplot2<\/h2>\n<p>Le package ggplot2 peut \u00eatre facilement install\u00e9 \u00e0 l\u2019aide de la fonction R <code>install.packages()<\/code>.<\/p>\n<p>Vous devez taper le code R suivant dans la console:<\/p>\n<pre class=\"r\"><code>install.packages(\"ggplot2\")<\/code><\/pre>\n<p>Le code ci-dessus t\u00e9l\u00e9chargera automatiquement le package ggplot2, depuis le d\u00e9p\u00f4t CRAN (Comprehensive R Archive Network), et l\u2019installera.<\/p>\n<\/div>\n<div id=\"utilisation-de-ggplot2\" class=\"section level2\">\n<h2>Utilisation de ggplot2<\/h2>\n<p>Apr\u00e8s avoir install\u00e9 le package, vous pouvez le charger \u00e0 l\u2019aide de la fonction R <code>library()<\/code>.<\/p>\n<pre class=\"r\"><code># Charger ggplot2\r\nlibrary(\"ggplot2\")\r\n\r\n# Cr\u00e9er un nuage de points\r\nggplot(iris, aes(x = Sepal.Length, y = Sepal.Width)) +\r\n  geom_point(aes(color = Species)) +\r\n  scale_color_viridis_d() +\r\n  theme_minimal()<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/ggplot2\/figures\/112-install-ggplot-in-r-using-ggplot2-1.png\" width=\"384\" \/><\/p>\n<\/div>\n<\/div>\n<p><!--end rdoc--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cet article d\u00e9crit comment installer ggplot2 dans R. Sommaire: Installation de ggplot2 Utilisation de ggplot2 Installation de ggplot2 Le package ggplot2 peut \u00eatre facilement install\u00e9 \u00e0 l\u2019aide de la fonction [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":10748,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rating_form_position":"","rating_results_position":"","mr_structured_data_type":"","footnotes":""},"categories":[279],"tags":[286],"class_list":["post-10747","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ggplot2-fr","tag-faq-ggplot2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Comment Installer GGPLOT2 dans R: Meilleure R\u00e9f\u00e9rence - Datanovia<\/title>\n<meta name=\"description\" content=\"Cet article d\u00e9crit comment installer facilement ggplot2 dans R.\" \/>\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\/fr\/blog\/comment-installer-ggplot2-dans-r\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Comment Installer GGPLOT2 dans R: Meilleure R\u00e9f\u00e9rence - Datanovia\" \/>\n<meta property=\"og:description\" content=\"Cet article d\u00e9crit comment installer facilement ggplot2 dans R.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/\" \/>\n<meta property=\"og:site_name\" content=\"Datanovia\" \/>\n<meta property=\"article:published_time\" content=\"2019-11-23T06:59:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/10\/IMG_3097.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=\"\u00c9crit par\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alboukadel\" \/>\n\t<meta name=\"twitter:label2\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/\"},\"author\":{\"name\":\"Alboukadel\",\"@id\":\"https:\/\/www.datanovia.com\/en\/fr\/#\/schema\/person\/7767cf2bd5c91a1610c6eb53a0ff069e\"},\"headline\":\"Comment Installer GGPLOT2 dans R\",\"datePublished\":\"2019-11-23T06:59:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/\"},\"wordCount\":140,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/fr\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/10\/IMG_3097.jpg\",\"keywords\":[\"FAQ ggplot2\"],\"articleSection\":[\"ggplot2\"],\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/\",\"url\":\"https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/\",\"name\":\"Comment Installer GGPLOT2 dans R: Meilleure R\u00e9f\u00e9rence - Datanovia\",\"isPartOf\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/fr\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/10\/IMG_3097.jpg\",\"datePublished\":\"2019-11-23T06:59:22+00:00\",\"description\":\"Cet article d\u00e9crit comment installer facilement ggplot2 dans R.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/#primaryimage\",\"url\":\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/10\/IMG_3097.jpg\",\"contentUrl\":\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/10\/IMG_3097.jpg\",\"width\":1024,\"height\":512},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.datanovia.com\/en\/fr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Comment Installer GGPLOT2 dans R\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.datanovia.com\/en\/fr\/#website\",\"url\":\"https:\/\/www.datanovia.com\/en\/fr\/\",\"name\":\"Datanovia\",\"description\":\"Exploration de Donn\u00e9es et Statistiques pour l'Aide \u00e0 la D\u00e9cision\",\"publisher\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/fr\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.datanovia.com\/en\/fr\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.datanovia.com\/en\/fr\/#organization\",\"name\":\"Datanovia\",\"url\":\"https:\/\/www.datanovia.com\/en\/fr\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/www.datanovia.com\/en\/fr\/#\/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\/fr\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.datanovia.com\/en\/fr\/#\/schema\/person\/7767cf2bd5c91a1610c6eb53a0ff069e\",\"name\":\"Alboukadel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/www.datanovia.com\/en\/fr\/#\/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\/fr\/blog\/author\/kassambara\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Comment Installer GGPLOT2 dans R: Meilleure R\u00e9f\u00e9rence - Datanovia","description":"Cet article d\u00e9crit comment installer facilement ggplot2 dans R.","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\/fr\/blog\/comment-installer-ggplot2-dans-r\/","og_locale":"fr_FR","og_type":"article","og_title":"Comment Installer GGPLOT2 dans R: Meilleure R\u00e9f\u00e9rence - Datanovia","og_description":"Cet article d\u00e9crit comment installer facilement ggplot2 dans R.","og_url":"https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/","og_site_name":"Datanovia","article_published_time":"2019-11-23T06:59:22+00:00","og_image":[{"width":1024,"height":512,"url":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/10\/IMG_3097.jpg","type":"image\/jpeg"}],"author":"Alboukadel","twitter_card":"summary_large_image","twitter_misc":{"\u00c9crit par":"Alboukadel","Dur\u00e9e de lecture estim\u00e9e":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/#article","isPartOf":{"@id":"https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/"},"author":{"name":"Alboukadel","@id":"https:\/\/www.datanovia.com\/en\/fr\/#\/schema\/person\/7767cf2bd5c91a1610c6eb53a0ff069e"},"headline":"Comment Installer GGPLOT2 dans R","datePublished":"2019-11-23T06:59:22+00:00","mainEntityOfPage":{"@id":"https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/"},"wordCount":140,"commentCount":0,"publisher":{"@id":"https:\/\/www.datanovia.com\/en\/fr\/#organization"},"image":{"@id":"https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/#primaryimage"},"thumbnailUrl":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/10\/IMG_3097.jpg","keywords":["FAQ ggplot2"],"articleSection":["ggplot2"],"inLanguage":"fr-FR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/","url":"https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/","name":"Comment Installer GGPLOT2 dans R: Meilleure R\u00e9f\u00e9rence - Datanovia","isPartOf":{"@id":"https:\/\/www.datanovia.com\/en\/fr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/#primaryimage"},"image":{"@id":"https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/#primaryimage"},"thumbnailUrl":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/10\/IMG_3097.jpg","datePublished":"2019-11-23T06:59:22+00:00","description":"Cet article d\u00e9crit comment installer facilement ggplot2 dans R.","breadcrumb":{"@id":"https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/#primaryimage","url":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/10\/IMG_3097.jpg","contentUrl":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/10\/IMG_3097.jpg","width":1024,"height":512},{"@type":"BreadcrumbList","@id":"https:\/\/www.datanovia.com\/en\/fr\/blog\/comment-installer-ggplot2-dans-r\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.datanovia.com\/en\/fr\/"},{"@type":"ListItem","position":2,"name":"Comment Installer GGPLOT2 dans R"}]},{"@type":"WebSite","@id":"https:\/\/www.datanovia.com\/en\/fr\/#website","url":"https:\/\/www.datanovia.com\/en\/fr\/","name":"Datanovia","description":"Exploration de Donn\u00e9es et Statistiques pour l'Aide \u00e0 la D\u00e9cision","publisher":{"@id":"https:\/\/www.datanovia.com\/en\/fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.datanovia.com\/en\/fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/www.datanovia.com\/en\/fr\/#organization","name":"Datanovia","url":"https:\/\/www.datanovia.com\/en\/fr\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.datanovia.com\/en\/fr\/#\/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\/fr\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.datanovia.com\/en\/fr\/#\/schema\/person\/7767cf2bd5c91a1610c6eb53a0ff069e","name":"Alboukadel","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.datanovia.com\/en\/fr\/#\/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\/fr\/blog\/author\/kassambara\/"}]}},"multi-rating":{"mr_rating_results":[]},"_links":{"self":[{"href":"https:\/\/www.datanovia.com\/en\/fr\/wp-json\/wp\/v2\/posts\/10747","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.datanovia.com\/en\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.datanovia.com\/en\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.datanovia.com\/en\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.datanovia.com\/en\/fr\/wp-json\/wp\/v2\/comments?post=10747"}],"version-history":[{"count":1,"href":"https:\/\/www.datanovia.com\/en\/fr\/wp-json\/wp\/v2\/posts\/10747\/revisions"}],"predecessor-version":[{"id":10749,"href":"https:\/\/www.datanovia.com\/en\/fr\/wp-json\/wp\/v2\/posts\/10747\/revisions\/10749"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.datanovia.com\/en\/fr\/wp-json\/wp\/v2\/media\/10748"}],"wp:attachment":[{"href":"https:\/\/www.datanovia.com\/en\/fr\/wp-json\/wp\/v2\/media?parent=10747"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.datanovia.com\/en\/fr\/wp-json\/wp\/v2\/categories?post=10747"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.datanovia.com\/en\/fr\/wp-json\/wp\/v2\/tags?post=10747"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}