{"id":679,"date":"2023-07-29T03:04:14","date_gmt":"2023-07-29T03:04:14","guid":{"rendered":"https:\/\/statorials.org\/nl\/relatief-frequentiehistogram-r\/"},"modified":"2023-07-29T03:04:14","modified_gmt":"2023-07-29T03:04:14","slug":"relatief-frequentiehistogram-r","status":"publish","type":"post","link":"https:\/\/statorials.org\/nl\/relatief-frequentiehistogram-r\/","title":{"rendered":"Hoe maak je een relatief frequentiehistogram in r"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">Een <a href=\"https:\/\/statorials.org\/nl\/relatief-frequentiehistogram-1\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>relatief frequentiehistogram<\/strong><\/a> is een grafiek die de relatieve frequenties van waarden in een dataset weergeeft.<\/span><\/p>\n<p> <span style=\"color: #000000;\">In deze zelfstudie wordt uitgelegd hoe u een relatief frequentiehistogram in R kunt maken met behulp van de functie <strong>roosterhistogram<\/strong> <strong>()<\/strong> , die de volgende syntaxis gebruikt:<\/span><\/p>\n<p> <strong><span style=\"color: #000000;\">histogram (x, type)<\/span><\/strong><\/p>\n<p> <span style=\"color: #000000;\">Goud:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>x:<\/strong> gegevens<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>type:<\/strong> type relatief frequentiehistogram dat u wilt maken; opties omvatten percentage, aantal en dichtheid.<\/span><\/li>\n<\/ul>\n<h3> <span style=\"color: #000000;\"><strong>Standaardhistogram<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Laad eerst het <strong>roosterpakket<\/strong> :<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong>library(lattice)<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Standaard maakt dit pakket een relatief frequentiehistogram met <strong>een percentage<\/strong> langs de y-as:<\/span> <\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#create data<\/span>\ndata &lt;- c(0, 0, 2, 3, 4, 4, 5, 6, 7, 12, 12, 14)\n\n<span style=\"color: #008080;\">#create relative frequency histogram<\/span>\nhistogram(data)<\/strong> <\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-6532 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/relfreqr1.png\" alt=\"Relatief frequentiehistogram in R\" width=\"424\" height=\"414\" srcset=\"\" sizes=\"auto, \"><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Het histogram bewerken<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">We kunnen het histogram aanpassen om een titel, verschillende aslabels en een andere kleur op te nemen met behulp van de volgende argumenten:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>belangrijkste:<\/strong> de titel<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>xlab:<\/strong> x-aslabel<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>ylab:<\/strong> het label van de y-as<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>col:<\/strong> de vulkleur die in het histogram moet worden gebruikt<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">Bijvoorbeeld:<\/span> <\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#modify the histogram<\/span>\nhistogram(data,\n          main='Points per Game by Player',\n          xlab='Points per Game',\n          col='steelblue')\n<\/strong><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-6534 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/relfreqr2.png\" alt=\"Relatief frequentiehistogram in R met behulp van het trellispakket\" width=\"423\" height=\"433\" srcset=\"\" sizes=\"auto, \"><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Het aantal bakken wijzigen<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">We kunnen het aantal te gebruiken bakken in het histogram specificeren met behulp van het <strong>breaks-<\/strong> argument:<\/span> <\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#modify the number of bins<\/span>\nhistogram(data,\n          main='Points per Game by Player',\n          xlab='Points per Game',\n          col='steelblue',\n          <span style=\"color: #800080;\">breaks=15<\/span> )\n<\/strong><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-6535 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/relfreqr3.png\" alt=\"Relatief frequentiehistogram met ingebouwde bins in R\" width=\"422\" height=\"435\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p> <span style=\"color: #000000;\">Hoe meer categorie\u00ebn u opgeeft, hoe gedetailleerder inzicht u in uw gegevens kunt krijgen. Omgekeerd geldt: hoe minder categorie\u00ebn u opgeeft, hoe geaggregeerder de gegevens worden:<\/span> <\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#modify the number of bins<\/span>\nhistogram(data,\n          main='Points per Game by Player',\n          xlab='Points per Game',\n          col='steelblue',\n          <span style=\"color: #800080;\">breaks=3<\/span> )\n<\/strong><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-6539 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/relfreqr4.png\" alt=\"Relatief frequentiehistogram in R\" width=\"434\" height=\"444\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p> <span style=\"color: #000000;\"><strong>Gerelateerd:<\/strong> Gebruik <a href=\"https:\/\/statorials.org\/nl\/sturges-regel-1\/\" target=\"_blank\" rel=\"noopener\">de regel van Sturges<\/a> om het optimale aantal groepen te identificeren dat in een histogram kan worden gebruikt.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Een relatief frequentiehistogram is een grafiek die de relatieve frequenties van waarden in een dataset weergeeft. In deze zelfstudie wordt uitgelegd hoe u een relatief frequentiehistogram in R kunt maken met behulp van de functie roosterhistogram () , die de volgende syntaxis gebruikt: histogram (x, type) Goud: x: gegevens type: type relatief frequentiehistogram dat u [&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":[],"class_list":["post-679","post","type-post","status-publish","format-standard","hentry","category-gids"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Hoe u een relatief frequentiehistogram maakt in R - Statorials<\/title>\n<meta name=\"description\" content=\"Een eenvoudige uitleg van hoe u een relatief frequentiehistogram in R kunt maken, met een voorbeeld.\" \/>\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\/nl\/relatief-frequentiehistogram-r\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hoe u een relatief frequentiehistogram maakt in R - Statorials\" \/>\n<meta property=\"og:description\" content=\"Een eenvoudige uitleg van hoe u een relatief frequentiehistogram in R kunt maken, met een voorbeeld.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/nl\/relatief-frequentiehistogram-r\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-29T03:04:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/relfreqr1.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\u00a0Minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/nl\/relatief-frequentiehistogram-r\/\",\"url\":\"https:\/\/statorials.org\/nl\/relatief-frequentiehistogram-r\/\",\"name\":\"Hoe u een relatief frequentiehistogram maakt in R - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/nl\/#website\"},\"datePublished\":\"2023-07-29T03:04:14+00:00\",\"dateModified\":\"2023-07-29T03:04:14+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/nl\/#\/schema\/person\/d4b8842173cca1bb62cdec41860e4219\"},\"description\":\"Een eenvoudige uitleg van hoe u een relatief frequentiehistogram in R kunt maken, met een voorbeeld.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/nl\/relatief-frequentiehistogram-r\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/nl\/relatief-frequentiehistogram-r\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/nl\/relatief-frequentiehistogram-r\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Thuis\",\"item\":\"https:\/\/statorials.org\/nl\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hoe maak je een relatief frequentiehistogram in r\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/nl\/#website\",\"url\":\"https:\/\/statorials.org\/nl\/\",\"name\":\"Statorials\",\"description\":\"Uw gids voor statistische competentie\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/nl\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"de\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/nl\/#\/schema\/person\/d4b8842173cca1bb62cdec41860e4219\",\"name\":\"Dr.benjamin anderson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/statorials.org\/nl\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/statorials.org\/nl\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"http:\/\/statorials.org\/nl\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"Dr.benjamin anderson\"},\"description\":\"Ik ben Benjamin, een gepensioneerde hoogleraar statistiek die nu een toegewijde Statorials-lesgever is. Ik heb uitgebreide ervaring en expertise op het gebied van statistiek en ik ben vastbesloten om mijn kennis te delen met studenten via Statorials. Lees verder\",\"sameAs\":[\"http:\/\/statorials.org\/nl\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Hoe u een relatief frequentiehistogram maakt in R - Statorials","description":"Een eenvoudige uitleg van hoe u een relatief frequentiehistogram in R kunt maken, met een voorbeeld.","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\/nl\/relatief-frequentiehistogram-r\/","og_locale":"de_DE","og_type":"article","og_title":"Hoe u een relatief frequentiehistogram maakt in R - Statorials","og_description":"Een eenvoudige uitleg van hoe u een relatief frequentiehistogram in R kunt maken, met een voorbeeld.","og_url":"https:\/\/statorials.org\/nl\/relatief-frequentiehistogram-r\/","og_site_name":"Statorials","article_published_time":"2023-07-29T03:04:14+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/relfreqr1.png"}],"author":"Dr.benjamin anderson","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"Dr.benjamin anderson","Gesch\u00e4tzte Lesezeit":"1\u00a0Minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/nl\/relatief-frequentiehistogram-r\/","url":"https:\/\/statorials.org\/nl\/relatief-frequentiehistogram-r\/","name":"Hoe u een relatief frequentiehistogram maakt in R - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/nl\/#website"},"datePublished":"2023-07-29T03:04:14+00:00","dateModified":"2023-07-29T03:04:14+00:00","author":{"@id":"https:\/\/statorials.org\/nl\/#\/schema\/person\/d4b8842173cca1bb62cdec41860e4219"},"description":"Een eenvoudige uitleg van hoe u een relatief frequentiehistogram in R kunt maken, met een voorbeeld.","breadcrumb":{"@id":"https:\/\/statorials.org\/nl\/relatief-frequentiehistogram-r\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/nl\/relatief-frequentiehistogram-r\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/nl\/relatief-frequentiehistogram-r\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Thuis","item":"https:\/\/statorials.org\/nl\/"},{"@type":"ListItem","position":2,"name":"Hoe maak je een relatief frequentiehistogram in r"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/nl\/#website","url":"https:\/\/statorials.org\/nl\/","name":"Statorials","description":"Uw gids voor statistische competentie","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/nl\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"de"},{"@type":"Person","@id":"https:\/\/statorials.org\/nl\/#\/schema\/person\/d4b8842173cca1bb62cdec41860e4219","name":"Dr.benjamin anderson","image":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/statorials.org\/nl\/#\/schema\/person\/image\/","url":"http:\/\/statorials.org\/nl\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"http:\/\/statorials.org\/nl\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"Dr.benjamin anderson"},"description":"Ik ben Benjamin, een gepensioneerde hoogleraar statistiek die nu een toegewijde Statorials-lesgever is. Ik heb uitgebreide ervaring en expertise op het gebied van statistiek en ik ben vastbesloten om mijn kennis te delen met studenten via Statorials. Lees verder","sameAs":["http:\/\/statorials.org\/nl"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/posts\/679","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/comments?post=679"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/posts\/679\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/media?parent=679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/categories?post=679"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/tags?post=679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}