{"id":961,"date":"2023-07-28T04:16:09","date_gmt":"2023-07-28T04:16:09","guid":{"rendered":"https:\/\/statorials.org\/de\/ausreisser-in-boxplots-entfernen-r\/"},"modified":"2023-07-28T04:16:09","modified_gmt":"2023-07-28T04:16:09","slug":"ausreisser-in-boxplots-entfernen-r","status":"publish","type":"post","link":"https:\/\/statorials.org\/de\/ausreisser-in-boxplots-entfernen-r\/","title":{"rendered":"So entfernen sie ausrei\u00dfer in boxplots in r"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">Manchmal m\u00f6chten Sie m\u00f6glicherweise Ausrei\u00dfer aus Boxplots in R entfernen.<\/span><\/p>\n<p> <span style=\"color: #000000;\">In diesem Tutorial wird erkl\u00e4rt, wie Sie dies sowohl mit Basis-R als auch <a href=\"https:\/\/ggplot2.tidyverse.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">mit ggplot2<\/a> tun.<\/span><\/p>\n<h2> <span style=\"color: #000000;\"><strong>Ausrei\u00dfer in Boxplots in Basis R entfernen<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">Angenommen, wir haben den folgenden Datensatz:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>data &lt;- c(5, 8, 8, 12, 14, 15, 16, 19, 20, 22, 24, 25, 25, 26, 30, 48)<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Der folgende Code zeigt, wie ein Boxplot f\u00fcr diesen Datensatz in Basis-R erstellt wird:<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>boxplot(data)\n<\/strong><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-10105 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/boite-a-moustachesr1.png\" alt=\"\" width=\"383\" height=\"331\" srcset=\"\" sizes=\"\"><\/p>\n<p> <span style=\"color: #000000;\">Um Ausrei\u00dfer zu entfernen, k\u00f6nnen Sie das Argument <strong>\u201eoutline=FALSE\u201c<\/strong> verwenden:<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>boxplot(data, outline= <span style=\"color: #008000;\">FALSE<\/span> )<\/strong> <\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-10106 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/boite-a-moustachesr2.png\" alt=\"Boxplot mit entferntem Ausrei\u00dfer in R\" width=\"407\" height=\"339\" srcset=\"\" sizes=\"\"><\/p>\n<h2> <span style=\"color: #000000;\"><strong>Ausrei\u00dfer in Boxplots in ggplot2 entfernen<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">Angenommen, wir haben den folgenden Datensatz:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>data &lt;- data.frame(y=c(5, 8, 8, 12, 14, 15, 16, 19, 20, 22, 24, 25, 25, 26, 30, 48))<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Der folgende Code zeigt, wie man mit der Visualisierungsbibliothek ggplot2 einen Boxplot erstellt:<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #993300;\">library<\/span> (ggplot2)\n\nggplot(data, aes(y=y)) +\n  <span style=\"color: #3366ff;\">geom_boxplot<\/span> ()\n<\/strong><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-10107 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/boite-a-moustachesr3.png\" alt=\"\" width=\"399\" height=\"389\" srcset=\"\" sizes=\"\"><\/p>\n<p> <span style=\"color: #000000;\">Um Ausrei\u00dfer zu entfernen, k\u00f6nnen Sie das Argument <strong>outlier.shape=NA<\/strong> verwenden:<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>ggplot(data, aes(y=y)) +\n<span style=\"color: #3366ff;\">geom_boxplot<\/span> (outlier.shape = <span style=\"color: #008000;\">NA<\/span> )\n<\/strong><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-10108 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/boite-a-moustachesr4.png\" alt=\"ggplot2-Boxplot mit entfernten Ausrei\u00dfern\" width=\"401\" height=\"399\" srcset=\"\" sizes=\"\"><\/p>\n<p> <span style=\"color: #000000;\">Beachten Sie, dass ggplot2 die y-Achse nicht automatisch anpasst.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Um die y-Achse anzupassen, k\u00f6nnen Sie <strong>coord_cartesian<\/strong> verwenden:<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>ggplot(data, aes(y=y)) +\n<span style=\"color: #3366ff;\">geom_boxplot<\/span> (outlier.shape = <span style=\"color: #008000;\">NA<\/span> ) +\n  <span style=\"color: #3366ff;\">coord_cartesian<\/span> (ylim=c(5, 30))<\/strong> <\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-10109 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/boite-a-moustachesr5.png\" alt=\"Boxplot ggplot2 ohne Ausrei\u00dfer\" width=\"402\" height=\"397\" srcset=\"\" sizes=\"\"><\/p>\n<p> <span style=\"color: #000000;\">Die y-Achse reicht nun von 5 bis 30, wie wir mit dem Argument <strong>ylim()<\/strong> angegeben haben.<\/span><\/p>\n<h2> <span style=\"color: #000000;\"><strong>Zus\u00e4tzliche Ressourcen<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">In den folgenden Tutorials wird erl\u00e4utert, wie Sie andere g\u00e4ngige Vorg\u00e4nge in ggplot2 ausf\u00fchren:<\/span><\/p>\n<p> <a href=\"https:\/\/statorials.org\/de\/legen-sie-die-achsengrenzen-fur-ggplot2-fest\/\" target=\"_blank\" rel=\"noopener noreferrer\">So legen Sie Achsengrenzen in ggplot2 fest<\/a><br \/> <a href=\"https:\/\/statorials.org\/de\/nebeneinander-plots-ggplot2\/\" target=\"_blank\" rel=\"noopener noreferrer\">So erstellen Sie nebeneinander liegende Diagramme in ggplot2<\/a><br \/> <a href=\"https:\/\/statorials.org\/de\/beschriften-sie-ausreisser-in-boxplots-ggplot2\/\" target=\"_blank\" rel=\"noopener\">So kennzeichnen Sie Ausrei\u00dfer in Boxplots in ggplot2<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Manchmal m\u00f6chten Sie m\u00f6glicherweise Ausrei\u00dfer aus Boxplots in R entfernen. In diesem Tutorial wird erkl\u00e4rt, wie Sie dies sowohl mit Basis-R als auch mit ggplot2 tun. Ausrei\u00dfer in Boxplots in Basis R entfernen Angenommen, wir haben den folgenden Datensatz: data &lt;- c(5, 8, 8, 12, 14, 15, 16, 19, 20, 22, 24, 25, 25, 26, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>So entfernen Sie Ausrei\u00dfer in Boxplots in R - Statorials<\/title>\n<meta name=\"description\" content=\"Eine einfache Erkl\u00e4rung, wie man Ausrei\u00dfer aus Boxplots in R entfernt, einschlie\u00dflich mehrerer Beispiele.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/statorials.org\/de\/ausreisser-in-boxplots-entfernen-r\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"So entfernen Sie Ausrei\u00dfer in Boxplots in R - Statorials\" \/>\n<meta property=\"og:description\" content=\"Eine einfache Erkl\u00e4rung, wie man Ausrei\u00dfer aus Boxplots in R entfernt, einschlie\u00dflich mehrerer Beispiele.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/de\/ausreisser-in-boxplots-entfernen-r\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-28T04:16:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/boite-a-moustachesr1.png\" \/>\n<meta name=\"author\" content=\"Dr. Benjamin Anderson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dr. Benjamin Anderson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\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\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/de\/ausreisser-in-boxplots-entfernen-r\/\",\"url\":\"https:\/\/statorials.org\/de\/ausreisser-in-boxplots-entfernen-r\/\",\"name\":\"So entfernen Sie Ausrei\u00dfer in Boxplots in R - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/de\/#website\"},\"datePublished\":\"2023-07-28T04:16:09+00:00\",\"dateModified\":\"2023-07-28T04:16:09+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0\"},\"description\":\"Eine einfache Erkl\u00e4rung, wie man Ausrei\u00dfer aus Boxplots in R entfernt, einschlie\u00dflich mehrerer Beispiele.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/de\/ausreisser-in-boxplots-entfernen-r\/#breadcrumb\"},\"inLanguage\":\"de-DE\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/de\/ausreisser-in-boxplots-entfernen-r\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/de\/ausreisser-in-boxplots-entfernen-r\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Heim\",\"item\":\"https:\/\/statorials.org\/de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"So entfernen sie ausrei\u00dfer in boxplots in r\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/de\/#website\",\"url\":\"https:\/\/statorials.org\/de\/\",\"name\":\"Statorials\",\"description\":\"Ihr Leitfaden f\u00fcr statistische Kompetenz !\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/de\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"de-DE\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0\",\"name\":\"Dr. Benjamin Anderson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de-DE\",\"@id\":\"https:\/\/statorials.org\/de\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg\",\"caption\":\"Dr. Benjamin Anderson\"},\"description\":\"Hallo, ich bin Benjamin, ein pensionierter Statistikprofessor, der sich zum engagierten Statorials-Lehrer entwickelt hat. Mit umfassender Erfahrung und Fachwissen auf dem Gebiet der Statistik bin ich bestrebt, mein Wissen zu teilen, um Studenten durch Statorials zu bef\u00e4higen. Mehr wissen\",\"sameAs\":[\"https:\/\/statorials.org\/de\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"So entfernen Sie Ausrei\u00dfer in Boxplots in R - Statorials","description":"Eine einfache Erkl\u00e4rung, wie man Ausrei\u00dfer aus Boxplots in R entfernt, einschlie\u00dflich mehrerer Beispiele.","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:\/\/statorials.org\/de\/ausreisser-in-boxplots-entfernen-r\/","og_locale":"de_DE","og_type":"article","og_title":"So entfernen Sie Ausrei\u00dfer in Boxplots in R - Statorials","og_description":"Eine einfache Erkl\u00e4rung, wie man Ausrei\u00dfer aus Boxplots in R entfernt, einschlie\u00dflich mehrerer Beispiele.","og_url":"https:\/\/statorials.org\/de\/ausreisser-in-boxplots-entfernen-r\/","og_site_name":"Statorials","article_published_time":"2023-07-28T04:16:09+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/boite-a-moustachesr1.png"}],"author":"Dr. Benjamin Anderson","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"Dr. Benjamin Anderson","Gesch\u00e4tzte Lesezeit":"1 Minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/de\/ausreisser-in-boxplots-entfernen-r\/","url":"https:\/\/statorials.org\/de\/ausreisser-in-boxplots-entfernen-r\/","name":"So entfernen Sie Ausrei\u00dfer in Boxplots in R - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/de\/#website"},"datePublished":"2023-07-28T04:16:09+00:00","dateModified":"2023-07-28T04:16:09+00:00","author":{"@id":"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0"},"description":"Eine einfache Erkl\u00e4rung, wie man Ausrei\u00dfer aus Boxplots in R entfernt, einschlie\u00dflich mehrerer Beispiele.","breadcrumb":{"@id":"https:\/\/statorials.org\/de\/ausreisser-in-boxplots-entfernen-r\/#breadcrumb"},"inLanguage":"de-DE","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/de\/ausreisser-in-boxplots-entfernen-r\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/de\/ausreisser-in-boxplots-entfernen-r\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Heim","item":"https:\/\/statorials.org\/de\/"},{"@type":"ListItem","position":2,"name":"So entfernen sie ausrei\u00dfer in boxplots in r"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/de\/#website","url":"https:\/\/statorials.org\/de\/","name":"Statorials","description":"Ihr Leitfaden f\u00fcr statistische Kompetenz !","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/de\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"de-DE"},{"@type":"Person","@id":"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0","name":"Dr. Benjamin Anderson","image":{"@type":"ImageObject","inLanguage":"de-DE","@id":"https:\/\/statorials.org\/de\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg","caption":"Dr. Benjamin Anderson"},"description":"Hallo, ich bin Benjamin, ein pensionierter Statistikprofessor, der sich zum engagierten Statorials-Lehrer entwickelt hat. Mit umfassender Erfahrung und Fachwissen auf dem Gebiet der Statistik bin ich bestrebt, mein Wissen zu teilen, um Studenten durch Statorials zu bef\u00e4higen. Mehr wissen","sameAs":["https:\/\/statorials.org\/de"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/posts\/961"}],"collection":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/comments?post=961"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/posts\/961\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/media?parent=961"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/categories?post=961"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/tags?post=961"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}