{"id":2963,"date":"2023-07-19T21:24:47","date_gmt":"2023-07-19T21:24:47","guid":{"rendered":"https:\/\/statorials.org\/tr\/rde-facet_wrap-vs-facet_grid\/"},"modified":"2023-07-19T21:24:47","modified_gmt":"2023-07-19T21:24:47","slug":"rde-facet_wrap-vs-facet_grid","status":"publish","type":"post","link":"https:\/\/statorials.org\/tr\/rde-facet_wrap-vs-facet_grid\/","title":{"rendered":"R&#39;de facet_wrap() ve facet_grid() aras\u0131ndaki fark"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">ggplot2 paketindeki <strong>facet_grid()<\/strong> ve <strong>facet_wrap()<\/strong> i\u015flevlerinin her ikisi de bir grafik \u0131zgaras\u0131 olu\u015fturmak i\u00e7in kullan\u0131labilir.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\u0130ki i\u015flev aras\u0131ndaki temel fark \u015fudur:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>facet_grid()<\/strong> i\u015flevi, baz\u0131 grafikler bo\u015f olsa bile, belirtti\u011finiz her de\u011fi\u015fken kombinasyonu i\u00e7in bir grafik grafi\u011fi \u00fcretecektir.<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>facet_wrap()<\/strong> i\u015flevi yaln\u0131zca de\u011ferleri olan de\u011fi\u015fkenlerin kombinasyonlar\u0131 i\u00e7in grafikler \u00fcretecektir; bu <strong>, herhangi bir bo\u015f grafik \u00fcretmeyece\u011fi<\/strong> anlam\u0131na gelir.<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki iki \u00f6rnek, a\u015fa\u011f\u0131daki veri \u00e7er\u00e7evesini kullanarak bu iki i\u015flev aras\u0131ndaki fark\u0131 g\u00f6stermektedir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008080;\">#create data frame<\/span>\ndf &lt;- data. <span style=\"color: #3366ff;\">frame<\/span> (team=c('A', 'A', 'A', 'A', 'B', 'B', 'B', 'B'),\n                 position=c('G', 'G', 'F', 'F', 'G', 'G', 'G', 'G'),\n                 points=c(8, 14, 20, 22, 25, 29, 30, 31),\n                 assists=c(10, 5, 5, 3, 8, 6, 9, 12))\n\n<span style=\"color: #008080;\">#view data frame\n<\/span>df\n\n  team position points assists\n1 GA 8 10\n2 AG 14 5\n3 FY 20 5\n4 AF 22 3\n5 BG 25 8\n6 BG 29 6\n7 BG 30 9\n8 BG 31 12<\/strong><\/span><\/pre>\n<h3> <span style=\"color: #000000;\"><strong>\u00d6rnek 1: facet_grid() i\u015flevinin kullan\u0131lmas\u0131<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, her tak\u0131m ve pozisyon kombinasyonu i\u00e7in asistlerin ve puanlar\u0131n da\u011f\u0131l\u0131m grafi\u011fini g\u00f6r\u00fcnt\u00fcleyen bir \u0131zgara olu\u015fturmak i\u00e7in <strong>facet_grid()<\/strong> i\u015flevinin nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 g\u00f6sterir:<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #993300;\"><span style=\"color: #000000;\"><span style=\"color: #008000;\">library<\/span> (ggplot2)\n\nggplot(df, <span style=\"color: #3366ff;\">aes<\/span> (assists, points)) +\n  geom_point() +\n  facet_grid(position~team)\n<\/span><\/span><\/strong><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-25685 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/facettegrid1.jpg\" alt=\"\" width=\"444\" height=\"453\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p> <span style=\"color: #000000;\">Orijinal veri \u00e7er\u00e7evesinde <strong>B<\/strong> tak\u0131m de\u011feri ve <strong>F<\/strong> konum de\u011feri i\u00e7in hi\u00e7bir de\u011fer bulunmamas\u0131na ra\u011fmen, her <strong>tak\u0131m<\/strong> ve <strong>konum<\/strong> kombinasyonu i\u00e7in bir da\u011f\u0131l\u0131m grafi\u011finin \u00fcretildi\u011fini unutmay\u0131n:<\/span> <\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-25686 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/facettegrid2.jpg\" alt=\"\" width=\"478\" height=\"475\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p> <span style=\"color: #000000;\"><strong>facet_grid()<\/strong> \u015fu \u015fekilde \u00e7al\u0131\u015f\u0131r: baz\u0131 grafikler bo\u015f olsa bile, belirtti\u011finiz her de\u011fi\u015fken kombinasyonu i\u00e7in bir grafik olu\u015fturur.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>\u00d6rnek 2: facet_wrap() i\u015flevinin kullan\u0131lmas\u0131<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, mevcut her tak\u0131m ve pozisyon kombinasyonu i\u00e7in asistlerin ve puanlar\u0131n da\u011f\u0131l\u0131m grafi\u011fini g\u00f6r\u00fcnt\u00fcleyen bir \u0131zgara olu\u015fturmak i\u00e7in <strong>facet_wrap()<\/strong> i\u015flevinin nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 g\u00f6sterir:<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #993300;\"><span style=\"color: #000000;\"><span style=\"color: #008000;\">library<\/span> (ggplot2)\n\nggplot(df, <span style=\"color: #3366ff;\">aes<\/span> (assists, points)) +\n  geom_point() +\n  facet_wrap(position~team)\n<\/span><\/span><\/strong><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-25687 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/facettegrid3.jpg\" alt=\"\" width=\"457\" height=\"456\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p> <span style=\"color: #000000;\">Bir da\u011f\u0131l\u0131m grafi\u011finin yaln\u0131zca orijinal veri \u00e7er\u00e7evesinde bulunan <strong>tak\u0131m<\/strong> ve <strong>konum<\/strong> kombinasyonlar\u0131 i\u00e7in \u00fcretildi\u011fini unutmay\u0131n.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Bu, <strong>B<\/strong> tak\u0131m\u0131 ve <strong>F<\/strong> konumu kombinasyonu i\u00e7in herhangi bir grafik olu\u015fturulmad\u0131\u011f\u0131 anlam\u0131na gelir \u00e7\u00fcnk\u00fc orijinal veri \u00e7er\u00e7evesinde s\u00f6z konusu kombinasyon i\u00e7in hi\u00e7bir de\u011fer mevcut de\u011fildir.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>facet_wrap()<\/strong> \u015fu \u015fekilde \u00e7al\u0131\u015f\u0131r: hi\u00e7bir zaman bo\u015f bir yol \u00fcretmez.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>Not<\/strong> : <a href=\"https:\/\/ggplot2.tidyverse.org\/reference\/facet_grid.html\" target=\"_blank\" rel=\"noopener\">facet_grid()<\/a> ve <a href=\"https:\/\/ggplot2.tidyverse.org\/reference\/facet_wrap.html\" target=\"_blank\" rel=\"noopener\">facet_wrap()<\/a> i\u015flevlerine ili\u015fkin eksiksiz bir k\u0131lavuz i\u00e7in ggplot2 belgelerine bak\u0131n.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Ek kaynaklar<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki e\u011fitimler ggplot2&#8217;de di\u011fer genel g\u00f6revlerin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fini a\u00e7\u0131klamaktad\u0131r:<\/span><\/p>\n<p> <a href=\"https:\/\/statorials.org\/tr\/ggplot-yazi-tipi-boyutu\/\" target=\"_blank\" rel=\"noopener\">Ggplot2&#8217;de yaz\u0131 tipi boyutu nas\u0131l de\u011fi\u015ftirilir?<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/ggplot2-efsanesini-kaldir\/\" target=\"_blank\" rel=\"noopener\">Ggplot2&#8217;de bir efsane nas\u0131l kald\u0131r\u0131l\u0131r<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/eksen-etiketlerini-dondur-ggplot2\/\" target=\"_blank\" rel=\"noopener\">Ggplot2&#8217;de eksen etiketleri nas\u0131l d\u00f6nd\u00fcr\u00fcl\u00fcr<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ggplot2 paketindeki facet_grid() ve facet_wrap() i\u015flevlerinin her ikisi de bir grafik \u0131zgaras\u0131 olu\u015fturmak i\u00e7in kullan\u0131labilir. \u0130ki i\u015flev aras\u0131ndaki temel fark \u015fudur: facet_grid() i\u015flevi, baz\u0131 grafikler bo\u015f olsa bile, belirtti\u011finiz her de\u011fi\u015fken kombinasyonu i\u00e7in bir grafik grafi\u011fi \u00fcretecektir. facet_wrap() i\u015flevi yaln\u0131zca de\u011ferleri olan de\u011fi\u015fkenlerin kombinasyonlar\u0131 i\u00e7in grafikler \u00fcretecektir; bu , herhangi bir bo\u015f grafik \u00fcretmeyece\u011fi anlam\u0131na [&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-2963","post","type-post","status-publish","format-standard","hentry","category-rehber"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>R - Statorialsde facet_wrap() ve facet_grid() aras\u0131ndaki fark<\/title>\n<meta name=\"description\" content=\"Bu e\u011fitimde ggplot2&#039;deki facet_wrap() ve facet_grid() aras\u0131ndaki fark bir \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.\" \/>\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\/tr\/rde-facet_wrap-vs-facet_grid\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"R - Statorialsde facet_wrap() ve facet_grid() aras\u0131ndaki fark\" \/>\n<meta property=\"og:description\" content=\"Bu e\u011fitimde ggplot2&#039;deki facet_wrap() ve facet_grid() aras\u0131ndaki fark bir \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/tr\/rde-facet_wrap-vs-facet_grid\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-19T21:24:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/facettegrid1.jpg\" \/>\n<meta name=\"author\" content=\"Dr.benjamin anderson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Yazan:\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dr.benjamin anderson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tahmini okuma s\u00fcresi\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/tr\/rde-facet_wrap-vs-facet_grid\/\",\"url\":\"https:\/\/statorials.org\/tr\/rde-facet_wrap-vs-facet_grid\/\",\"name\":\"R - Statorialsde facet_wrap() ve facet_grid() aras\u0131ndaki fark\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/tr\/#website\"},\"datePublished\":\"2023-07-19T21:24:47+00:00\",\"dateModified\":\"2023-07-19T21:24:47+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\"},\"description\":\"Bu e\u011fitimde ggplot2&#39;deki facet_wrap() ve facet_grid() aras\u0131ndaki fark bir \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/tr\/rde-facet_wrap-vs-facet_grid\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/tr\/rde-facet_wrap-vs-facet_grid\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/tr\/rde-facet_wrap-vs-facet_grid\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ev\",\"item\":\"https:\/\/statorials.org\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"R&#39;de facet_wrap() ve facet_grid() aras\u0131ndaki fark\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/tr\/#website\",\"url\":\"https:\/\/statorials.org\/tr\/\",\"name\":\"Statorials\",\"description\":\"\u0130statistik okuryazarl\u0131\u011f\u0131 rehberiniz!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/tr\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"tr\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\",\"name\":\"Dr.benjamin anderson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"tr\",\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/tr\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/tr\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"Dr.benjamin anderson\"},\"description\":\"Merhaba, ben Benjamin, emekli bir istatistik profes\u00f6r\u00fc ve Statorials \u00f6\u011fretmenine d\u00f6n\u00fc\u015ft\u00fcm. \u0130statistik alan\u0131ndaki kapsaml\u0131 deneyimim ve uzmanl\u0131\u011f\u0131mla, \u00f6\u011frencilerimi Statorials arac\u0131l\u0131\u011f\u0131yla g\u00fc\u00e7lendirmek i\u00e7in bilgilerimi payla\u015fmaya can at\u0131yorum. Daha fazlas\u0131n\u0131 bil\",\"sameAs\":[\"https:\/\/statorials.org\/tr\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"R - Statorialsde facet_wrap() ve facet_grid() aras\u0131ndaki fark","description":"Bu e\u011fitimde ggplot2&#39;deki facet_wrap() ve facet_grid() aras\u0131ndaki fark bir \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.","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\/tr\/rde-facet_wrap-vs-facet_grid\/","og_locale":"tr_TR","og_type":"article","og_title":"R - Statorialsde facet_wrap() ve facet_grid() aras\u0131ndaki fark","og_description":"Bu e\u011fitimde ggplot2&#39;deki facet_wrap() ve facet_grid() aras\u0131ndaki fark bir \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.","og_url":"https:\/\/statorials.org\/tr\/rde-facet_wrap-vs-facet_grid\/","og_site_name":"Statorials","article_published_time":"2023-07-19T21:24:47+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/facettegrid1.jpg"}],"author":"Dr.benjamin anderson","twitter_card":"summary_large_image","twitter_misc":{"Yazan:":"Dr.benjamin anderson","Tahmini okuma s\u00fcresi":"2 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/tr\/rde-facet_wrap-vs-facet_grid\/","url":"https:\/\/statorials.org\/tr\/rde-facet_wrap-vs-facet_grid\/","name":"R - Statorialsde facet_wrap() ve facet_grid() aras\u0131ndaki fark","isPartOf":{"@id":"https:\/\/statorials.org\/tr\/#website"},"datePublished":"2023-07-19T21:24:47+00:00","dateModified":"2023-07-19T21:24:47+00:00","author":{"@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48"},"description":"Bu e\u011fitimde ggplot2&#39;deki facet_wrap() ve facet_grid() aras\u0131ndaki fark bir \u00f6rnekle a\u00e7\u0131klanmaktad\u0131r.","breadcrumb":{"@id":"https:\/\/statorials.org\/tr\/rde-facet_wrap-vs-facet_grid\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/tr\/rde-facet_wrap-vs-facet_grid\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/tr\/rde-facet_wrap-vs-facet_grid\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Ev","item":"https:\/\/statorials.org\/tr\/"},{"@type":"ListItem","position":2,"name":"R&#39;de facet_wrap() ve facet_grid() aras\u0131ndaki fark"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/tr\/#website","url":"https:\/\/statorials.org\/tr\/","name":"Statorials","description":"\u0130statistik okuryazarl\u0131\u011f\u0131 rehberiniz!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/tr\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"tr"},{"@type":"Person","@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48","name":"Dr.benjamin anderson","image":{"@type":"ImageObject","inLanguage":"tr","@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/tr\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/tr\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"Dr.benjamin anderson"},"description":"Merhaba, ben Benjamin, emekli bir istatistik profes\u00f6r\u00fc ve Statorials \u00f6\u011fretmenine d\u00f6n\u00fc\u015ft\u00fcm. \u0130statistik alan\u0131ndaki kapsaml\u0131 deneyimim ve uzmanl\u0131\u011f\u0131mla, \u00f6\u011frencilerimi Statorials arac\u0131l\u0131\u011f\u0131yla g\u00fc\u00e7lendirmek i\u00e7in bilgilerimi payla\u015fmaya can at\u0131yorum. Daha fazlas\u0131n\u0131 bil","sameAs":["https:\/\/statorials.org\/tr"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/2963","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/comments?post=2963"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/2963\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/media?parent=2963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/categories?post=2963"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/tags?post=2963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}