{"id":78540,"date":"2020-05-05T16:36:31","date_gmt":"2020-05-05T11:06:31","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=78540"},"modified":"2020-05-05T16:36:31","modified_gmt":"2020-05-05T11:06:31","slug":"bar-chart-in-r","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/bar-chart-in-r\/","title":{"rendered":"Bar Chart in R &#8211; Implementation, Customization and Example"},"content":{"rendered":"<p><strong>Bar chart in R<\/strong> is one of the most popular and commonly used graph in the history of graphical representation and data visualization. They represent different measures as rectangular bars, with the height(in case of vertical graphs) and width(in case of horizontal graphs) representing the magnitudes of their corresponding measures.<\/p>\n<p>In this R tutorial, we are going to study bar charts in detail. We will look at the theory behind them, how to implement them in R and how to customize them. We will also look at how to plot them using the ggplot2 package. So, without any further ado, let\u2019s get started.<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Bar-Charts-in-R.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78563\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Bar-Charts-in-R.jpg\" alt=\"Bar Chart in R\" width=\"802\" height=\"420\" \/><\/a><\/p>\n<h2>Bar charts in R<\/h2>\n<p>A bar chart is a kind of graph that is usually used to compare different categories. It represents every category as a rectangular bar, with the height\/width of the rectangle along the opposite axis representing the frequency of the category. Bar charts can also represent data with complex categories as stacked bar charts.<\/p>\n<h2>Making Bar charts in R<\/h2>\n<p>Making bar charts in R is quite simple. We can make them using the barplot() command.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">barplot(c(1.2,4.3,6.4,2.3,4.2,8.5,4.9))<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/1.barplots-and-histograms-in-r-barplot-function.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78542\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/1.barplots-and-histograms-in-r-barplot-function.png\" alt=\"Bar charts in R\" width=\"563\" height=\"304\" \/><\/a><\/p>\n<h2>Customizing Bar Charts in R<\/h2>\n<h3>1. Adding a name to the chart<\/h3>\n<p>It is possible to add a title to the graph by using the main argument.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">barplot(c(1.2,4.3,6.4,2.3,4.2,8.5,4.9),\n        main=\"TechVidvan BarPlot\")\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/2.barplots-and-histograms-in-r-baplot-title.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78543\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/2.barplots-and-histograms-in-r-baplot-title.png\" alt=\"Barplots in R\" width=\"599\" height=\"330\" \/><\/a><\/p>\n<h3>2. Adding labels to the bar chart<\/h3>\n<p>Using the xlab and the ylab arguments, we can add labels to the X and Y axes of the bar chart.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">barplot(c(1.2,4.3,6.4,2.3,4.2,8.5,4.9),\n        main=\"TechVidvan BarPlot\",\n        xlab=\"X\",\n        ylab=\"Y\")\n<\/pre>\n<p><strong>Output<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/3.barplots-and-histograms-in-r-xlab-and-ylab.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78544\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/3.barplots-and-histograms-in-r-xlab-and-ylab.png\" alt=\"R bar charts\" width=\"599\" height=\"360\" \/><\/a><\/p>\n<h3>3. Changing the color of the bars<\/h3>\n<p>We can use the col argument to change the color of the bars.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">barplot(c(1.2,4.3,6.4,2.3,4.2,8.5,4.9),\n        main=\"TechVidvan BarPlot\",\n        xlab=\"X\",\n        ylab=\"Y\",\n        col=\"green\")\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/4.barplots-and-histograms-in-r-color-single.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78545\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/4.barplots-and-histograms-in-r-color-single.png\" alt=\"Single color bar plot in R\" width=\"599\" height=\"354\" \/><\/a><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">barplot(c(1.2,4.3,6.4,2.3,4.2,8.5,4.9),\n        main=\"TechVidvan BarPlot\",\n        xlab=\"X\",\n        ylab=\"Y\",\n        col=rainbow(7))\n<\/pre>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/5.barplots-and-histogram-in-r-colors-mulitple.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78546\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/5.barplots-and-histogram-in-r-colors-mulitple.png\" alt=\"Multicolor bar plots in R\" width=\"579\" height=\"362\" \/><\/a><\/p>\n<h3>4. Adding a border to the bars<\/h3>\n<p>Using the border argument, a border can be added to the bars inside the plot<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">barplot(c(1.2,4.3,6.4,2.3,4.2,8.5,4.9),\n        main=\"TechVidvan BarPlot\",\n        xlab=\"X\",\n        ylab=\"Y\",\n        col=rainbow(7),\n        border=\"red\")<\/pre>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/6.barplots-and-histograms-in-r-barplots-border.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78547\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/6.barplots-and-histograms-in-r-barplots-border.png\" alt=\"R Bar plots with borders\" width=\"599\" height=\"346\" \/><\/a><\/p>\n<h2>Grouped Bar Plots in R<\/h2>\n<p>In case, we need to show a comparison between groups of repeating variables. For example, imagine a shop that rents and sells cars. We need to compare how many rentals and sales does each model of car has. We can use a group bar plot for such a situation. To create a grouped barplot the input data needs to be in the form of a matrix and the beside argument should be set to TRUE.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">colnames &lt;- c(\"alto\",\"i20\",\"brio\",\"indica\",\"wagonR\",\"verna\",\"mobilo\")\nrowname &lt;- c(\"rental\",\"sales\")\ncarsmat &lt;- matrix(c(2,3,5,4,8,4,6,5,4,2,8,9,5,4),\n                  c(2,7),\n                  byrow=FALSE)\ncolnames(carsmat) &lt;- colnames\nrownames(carsmat) &lt;- rowname\nbarplot(carsmat,beside=TRUE)<\/pre>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/7.barplots-and-histograms-in-r-grouped-barplot.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78548\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/7.barplots-and-histograms-in-r-grouped-barplot.png\" alt=\"Grouped Bar Plots in R\" width=\"599\" height=\"334\" \/><\/a><\/p>\n<h2>Customizing the grouped barplot in R<\/h2>\n<p>Using the arguments of the barplot() function, we can customize the graph the way we want.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">barplot(carsmat,\n        beside=TRUE,\n        main=\"Car sales and rentals\",\n        xlab = \"cars\",\n        ylabs = \"count\",\n        col=c(\"red\",\"blue\"),\n        border=\"green\")<\/pre>\n<p><strong>Output<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/8.barplots-and-histograms-in-r-customized-grouped-barplot.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78549\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/8.barplots-and-histograms-in-r-customized-grouped-barplot.png\" alt=\"Grouped Bar Charts in r\" width=\"599\" height=\"378\" \/><\/a><\/p>\n<h2>Stacked bar plots in R<\/h2>\n<p>Stacked bar plots have a similar purpose to the group bar plots. The only difference between the two is the arrangement of the bars. Unlike the grouped barplot, the stacked barplot does not have the bars arranged side-by-side. Instead, in stacked bar plots, the bars are stacked on top of each other. By default, the barplot function creates a stacked barplot if the input data is a matrix.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">barplot(carsmat)<\/pre>\n<p><strong>Output<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/9.barplots-and-histograms-in-r-stacked-barplots.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78550\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/9.barplots-and-histograms-in-r-stacked-barplots.png\" alt=\"Grouped Bar Plots in R\" width=\"599\" height=\"336\" \/><\/a><\/p>\n<h2>Customizing the R stacked barplot<\/h2>\n<p>Stacked bar plots can be customized similarly to normal other bar plots.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">barplot(carsmat,\n        main=\"Car sales and rentals\",\n        xlab = \"cars\",\n        ylabs = \"count\",\n        col=c(\"red\",\"blue\"),\n        border=\"green\")\n<\/pre>\n<p><strong>Output<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/10.barplots-and-histograms-in-r-customized-stacked-barplot.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78551\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/10.barplots-and-histograms-in-r-customized-stacked-barplot.png\" alt=\"Stacked Bar Plot in R\" width=\"599\" height=\"398\" \/><\/a><\/p>\n<h2>Barplots Using the Ggplot2 Package<\/h2>\n<p>Ggplot2 is probably the best graphics and visualization package available in R. It is highly versatile and gives a large variety of customizability. In this section of the bar plots in R tutorial, we are going to take see how to make bar plots in R using the ggplot2 package.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">library(ggplot2)\ndf &lt;- data.frame(dose=c(\"D0.5\", \"D1\", \"D2\"),\n                 len=c(4.2, 10, 29.5))\nggplot(df, aes(x=dose, y=len)) +\n  geom_bar(stat=\"identity\", \n           width=0.5, \n           color=\"blue\", \n           fill=\"white\") +\n  geom_text(aes(label=len), \n            vjust=1.6, \n            color=\"white\", \n            size=3.5)\n<\/pre>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/16.barplots-and-histogram-in-r-barplots-with-ggplot2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78557\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/16.barplots-and-histogram-in-r-barplots-with-ggplot2.png\" alt=\"R barcharts\" width=\"652\" height=\"425\" \/><\/a><\/p>\n<h2>Summary<\/h2>\n<p>In this chapter of TechVidvan\u2019s R tutorial series, we learned all about bar chart in R. We studied the theory behind it. Then, we looked at how to make and customize it in R. Finally, we learned how to make bar plots in R using the ggplot2 package.<\/p>\n<p><strong>Do follow us on <a href=\"https:\/\/www.facebook.com\/TechVidvan\/\">facebook<\/a> to get more articles on latest technologies.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bar chart in R is one of the most popular and commonly used graph in the history of graphical representation and data visualization. They represent different measures as rectangular bars, with the height(in case&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":78563,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1020],"tags":[2576],"class_list":["post-78540","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-r","tag-bar-charts-in-r"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Bar Chart in R - Implementation, Customization and Example - TechVidvan<\/title>\n<meta name=\"description\" content=\"Bar chart in R - Learn how to create bar chart in R using barplot() command, how to customize the barplots. Learn how to use Ggplot2 package for bar chart\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techvidvan.com\/tutorials\/bar-chart-in-r\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bar Chart in R - Implementation, Customization and Example - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"Bar chart in R - Learn how to create bar chart in R using barplot() command, how to customize the barplots. Learn how to use Ggplot2 package for bar chart\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/bar-chart-in-r\/\" \/>\n<meta property=\"og:site_name\" content=\"TechVidvan\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TechVidvan\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-05-05T11:06:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/05\/Bar-Charts-in-R.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"802\" \/>\n\t<meta property=\"og:image:height\" content=\"420\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"TechVidvan Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:site\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TechVidvan Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Bar Chart in R - Implementation, Customization and Example - TechVidvan","description":"Bar chart in R - Learn how to create bar chart in R using barplot() command, how to customize the barplots. Learn how to use Ggplot2 package for bar chart","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:\/\/techvidvan.com\/tutorials\/bar-chart-in-r\/","og_locale":"en_US","og_type":"article","og_title":"Bar Chart in R - Implementation, Customization and Example - TechVidvan","og_description":"Bar chart in R - Learn how to create bar chart in R using barplot() command, how to customize the barplots. Learn how to use Ggplot2 package for bar chart","og_url":"https:\/\/techvidvan.com\/tutorials\/bar-chart-in-r\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2020-05-05T11:06:31+00:00","og_image":[{"width":802,"height":420,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/05\/Bar-Charts-in-R.jpg","type":"image\/jpeg"}],"author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@vidvantech","twitter_site":"@vidvantech","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/bar-chart-in-r\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/bar-chart-in-r\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"Bar Chart in R &#8211; Implementation, Customization and Example","datePublished":"2020-05-05T11:06:31+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/bar-chart-in-r\/"},"wordCount":603,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/bar-chart-in-r\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/05\/Bar-Charts-in-R.jpg","keywords":["Bar charts in R"],"articleSection":["R Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/bar-chart-in-r\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/bar-chart-in-r\/","url":"https:\/\/techvidvan.com\/tutorials\/bar-chart-in-r\/","name":"Bar Chart in R - Implementation, Customization and Example - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/bar-chart-in-r\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/bar-chart-in-r\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/05\/Bar-Charts-in-R.jpg","datePublished":"2020-05-05T11:06:31+00:00","description":"Bar chart in R - Learn how to create bar chart in R using barplot() command, how to customize the barplots. Learn how to use Ggplot2 package for bar chart","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/bar-chart-in-r\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/bar-chart-in-r\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/bar-chart-in-r\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/05\/Bar-Charts-in-R.jpg","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/05\/Bar-Charts-in-R.jpg","width":802,"height":420,"caption":"Bar Chart in R"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/bar-chart-in-r\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Bar Chart in R &#8211; Implementation, Customization and Example"}]},{"@type":"WebSite","@id":"https:\/\/techvidvan.com\/tutorials\/#website","url":"https:\/\/techvidvan.com\/tutorials\/","name":"TechVidvan Blogs","description":"","publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techvidvan.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techvidvan.com\/tutorials\/#organization","name":"TechVidvan","url":"https:\/\/techvidvan.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","width":200,"height":50,"caption":"TechVidvan"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/TechVidvan\/","https:\/\/x.com\/vidvantech"]},{"@type":"Person","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22","name":"TechVidvan Team","description":"The TechVidvan Team delivers practical, beginner-friendly tutorials on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our experts are here to help you upskill and excel in today\u2019s tech industry."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/78540","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/comments?post=78540"}],"version-history":[{"count":0,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/78540\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/78563"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=78540"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=78540"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=78540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}