{"id":78471,"date":"2020-05-04T17:34:17","date_gmt":"2020-05-04T12:04:17","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=78471"},"modified":"2020-05-04T17:34:17","modified_gmt":"2020-05-04T12:04:17","slug":"graphical-data-analysis-in-r","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/graphical-data-analysis-in-r\/","title":{"rendered":"Graphical Data Analysis in R &#8211; Types and Examples"},"content":{"rendered":"<p>R is said to be the best platform for data visualization and graphical data analysis. It has a plethora of functions and commands needed to plot any kind of graph in any configuration for any kind of data. In this R Tutorial, we will learn about<strong> graphical data analysis in R. <\/strong><\/p>\n<p>We shall take a look at the different kinds of graphs R can plot with its base package. Then we will study the capabilities of the <strong>ggplot2 package<\/strong>. This is going to be an exciting chapter in <strong>TechVidvan\u2019s R tutorial series<\/strong>. So let\u2019s get started.<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Graphical-Data-Analysis-in-R.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78500\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Graphical-Data-Analysis-in-R.jpg\" alt=\"Graphical Data Analysis in R\" width=\"802\" height=\"420\" \/><\/a><\/p>\n<h2>Graphical Data Analysis in R<\/h2>\n<p>R is believed to be the best at data visualization for good reason. <a href=\"https:\/\/techvidvan.com\/tutorials\/r-packages\/\">R base packages<\/a> come with functions like the hist() function, the boxplot() function, the barplot() function, etc. that can render a single type of graph. They also include the incredible plot() function that can render multiple kinds of graphs depending on the input arguments.<\/p>\n<p>Let us take a look at the various types of graphs one-by-one:<\/p>\n<h3>1. Histogram in R<\/h3>\n<p>Histograms are a means to show frequency distribution graphically. It shows the spread and shape of continuous data. We can plot a histogram in R by using the <strong>hist() function<\/strong>.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hist(airquality$Ozone)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/histogram-of-airqualityozone.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78502\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/histogram-of-airqualityozone.jpg\" alt=\"Histogram in R\" width=\"624\" height=\"334\" \/><\/a><\/p>\n<p>We can also use the <strong>plot() function<\/strong> to make a histogram by setting the type argument to h. This gives us a histogram like a high-density vertical line plot.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">plot(airquality$Ozone, type=\u201dh\u201d)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Histogram.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78501\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Histogram.jpg\" alt=\"\" width=\"620\" height=\"351\" \/><\/a><\/p>\n<h3>2. Bar chart in R<\/h3>\n<p>Bar charts show categorical data in the form of rectangular bars. The <strong>barplot()<\/strong> function can be used to plot a bar-chart in R.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">barplot(\n     airquality$Ozone, \n     main=\"Ozone concentration in air\", \n     xlab='ozone levels', \n     col='blue', \n     horiz=TRUE)\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Ozone-Concentration-in-Air.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78503\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Ozone-Concentration-in-Air.jpg\" alt=\"Bar Chart in R\" width=\"541\" height=\"432\" \/><\/a><\/p>\n<h3>3. Scatter Plot in R<\/h3>\n<p>Scatterplots usually show two variables in a 2D cartesian plane. They are the default for the plot() function.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">plot(\n  airquality$Ozone, \n  xlab='ozone concentration',\n  ylab='No of Instances', \n  main='Ozone levels in NY city',\n  col='orange')<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Ozone-levels-in-NY-city.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78504\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Ozone-levels-in-NY-city.jpg\" alt=\"Scatter Plot in R\" width=\"598\" height=\"344\" \/><\/a><\/p>\n<h3>4. Pie chart in R<\/h3>\n<p>Pie charts show the percentage distribution of a single variable in the form of parts of a circle. We can make pie charts in R by using the pie() function.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">pie.data &lt;- c(0.3,0.25,0.12,0.23,0.06,0.04)\nnames(pie.data) &lt;- c(letters[1:6])\npie(pie.data, col=rainbow(6))<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Pie-Chart.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78505\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Pie-Chart.jpg\" alt=\"Pie Chart in R\" width=\"263\" height=\"228\" \/><\/a><\/p>\n<h3>5. Time Series Graph in R<\/h3>\n<p>Time-series graphs are line graphs that show repeated measurements taken over time. Time-series graphs can be rendered in R using the ts.plot() function.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">ts.plot(ldeaths, \n        mdeaths, \n        fdeaths,\n        gpars=list(xlab=\"year\", \n                   ylab=\"deaths\", \n                   lty=c(1:3)))<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Time-Series-Graph.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78506\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Time-Series-Graph.jpg\" alt=\"Time Series Graph in R\" width=\"608\" height=\"352\" \/><\/a><\/p>\n<h3>6. Stepped line graph in R<\/h3>\n<p>The stepped line graph is like a line graph with steps between data points. These are very useful to show changes in a measure at irregular intervals. We can make a stepped line graph in R using the plot() function and setting the type argument as s.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">plot(rnorm(50),type='s')<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Stepped-Line-Graph.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78507\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Stepped-Line-Graph.jpg\" alt=\"Stepped Line Graph in R\" width=\"617\" height=\"328\" \/><\/a><\/p>\n<h3>7. Box plot in R<\/h3>\n<p>Box plots show groups of numerical data through quartiles. They show important milestones of the data such as the minimum value, the first quartile, the median, the third quartile, and the maximum value. We can make a box plot by using the <strong>boxplot()<\/strong> function of R.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">boxplot(airquality[,1:4],main=\"Air quality in NY city\")<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Air-Quality-in-NY-City.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78508\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Air-Quality-in-NY-City.jpg\" alt=\"Box Plot in R\" width=\"576\" height=\"325\" \/><\/a><\/p>\n<h3>8. Pairs function in R<\/h3>\n<p>The pairs() function returns a matrix of multiple scatter plots. It is very useful when the number of variables is more than two. This function renders multiple scatter plots of every possible pair of the input variables. For example:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">pairs(iris[1:4], \n      main = \"Anderson's Iris Data -- 3 species\",\n      pch = 21, \n      bg = c(\"red\", \"orange\", \"blue\")\n      [unclass(iris$Species)])<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Anderson\u2019s-Iris-Data-3-species.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78509\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Anderson\u2019s-Iris-Data-3-species.jpg\" alt=\"Pairs Function in R\" width=\"579\" height=\"348\" \/><\/a><\/p>\n<h3>9. Conditional plots in R<\/h3>\n<p>Conditional plots or coplots are plots of two variables conditional to a third variable. In R, the coplot() function can be used to render conditional plots.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Index &lt;- seq(length = nrow(warpbreaks))\ncoplot(breaks ~ Index | wool * tension, \n       data = warpbreaks,\n       col = \"blue\", \n       bg = \"cyan\", \n       pch = 21,\n       bar.bg = c(fac = \"light blue\"))<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Conditional-Plots.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78510\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Conditional-Plots.jpg\" alt=\"Conditional Plots in R\" width=\"615\" height=\"415\" \/><\/a><\/p>\n<h3>10. ggplot2 Package in R<\/h3>\n<p>Ggplot2 is probably the most powerful graphics package in R. It offers a lot of customization for the plots. The syntax of the ggplot2 package is slightly different from the base graphics package. Let us take a look at that:<\/p>\n<p><strong>1. A simple scatter plot with the ggplot2 package<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">library(ggplot2)\nggplot(midwest, aes(x=area,y=poptotal))+geom_point()<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/A-simple-scatter-plot-with-the-ggplot2-package.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78511\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/A-simple-scatter-plot-with-the-ggplot2-package.jpg\" alt=\"GGPlot2 package in R\" width=\"632\" height=\"424\" \/><\/a><\/p>\n<p>The geom_point() command is called a layer. The <a href=\"https:\/\/ggplot2.tidyverse.org\/reference\/labs.html\">ggplot2 package<\/a> has many such geom layers. Adding a layer enhances the graph in some ways.<\/p>\n<p><strong>2. Adding a smoothing layer to the plot<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">ggplot(midwest, aes(x=area,y=poptotal))+geom_point()+geom_smooth(method = \"lm\")<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Adding-a-smoothing-layer-to-the-plot.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78512\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Adding-a-smoothing-layer-to-the-plot.jpg\" alt=\"GGPlot 2 in R\" width=\"634\" height=\"442\" \/><\/a><\/p>\n<p>The geom_smooth() layer adds a smoothing layer to the plot<\/p>\n<p><strong>3. Adjusting the X and Y axis limit in the plot<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">ggplot(midwest, aes(x=area,y=poptotal))+geom_point()+geom_smooth(method = \"lm\")+xlim(c(0,0.1))+ylim(c(0,1000000))\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Adjusting-the-X-Y-axis-limit-in-the-plot.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-78513 size-full\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Adjusting-the-X-Y-axis-limit-in-the-plot.jpg\" alt=\"Graphical data analysis in R\" width=\"633\" height=\"435\" \/><\/a><\/p>\n<p>The xlim() and ylim() commands limit the range of the X and Y axis, which produces a zooming effect.<\/p>\n<p><strong>4. Changing the titles and axis labels of the plot<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">ggplot(midwest, aes(x=area,y=poptotal))+geom_point()+geom_smooth(method = \"lm\")+xlim(c(0,0.1))+ylim(c(0,1000000))+ labs(title=\"Area Vs Population\", subtitle=\"From midwest dataset\", y=\"Population\", x=\"Area\", caption=\"Midwest Demographics\")<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Changing-the-titles-axis-labels-of-the-plot.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-78514 size-full\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Changing-the-titles-axis-labels-of-the-plot.jpg\" alt=\"Graphical Data Analysis in R\" width=\"637\" height=\"406\" \/><\/a><\/p>\n<p>The ggtitle() command is another alternative to the labs() function<\/p>\n<p><strong>5. Changing the color and size of the points<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">ggplot(midwest, aes(x=area,y=poptotal))+geom_point(col=\"blue\",size=3)+geom_smooth(method = \"lm\",col=\"red\")+xlim(c(0,0.1))+ylim(c(0,1000000))+ labs(title=\"Area Vs Population\", subtitle=\"From midwest dataset\", y=\"Population\", x=\"Area\", caption=\"Midwest Demographics\")<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Changing-the-color-size-of-the-points.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-78515 size-full\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Changing-the-color-size-of-the-points.jpg\" alt=\"Graphical Data Analysis in R\" width=\"629\" height=\"414\" \/><\/a><\/p>\n<p>Modifying the aesthetics of the graphs is very easy with the ggplot2 package.<\/p>\n<p><strong>6. Varying the color of the point according to another variable<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">ggplot(midwest, aes(x=area,y=poptotal))+geom_point(aes(col=state),size=3)+geom_smooth(method = \"lm\",col=\"red\")+xlim(c(0,0.1))+ylim(c(0,1000000))+ labs(title=\"Area Vs Population\", subtitle=\"From midwest dataset\", y=\"Population\", x=\"Area\", caption=\"Midwest Demographics\")<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Varying-the-color-of-the-point-according-to-another-variable.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-78516 size-full\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Varying-the-color-of-the-point-according-to-another-variable.jpg\" alt=\"Graphical Data Analysis in R\" width=\"619\" height=\"404\" \/><\/a><\/p>\n<p>Varying the color like this enables the graph to convey even more information than before.<\/p>\n<h2>Summary<\/h2>\n<p>R is the foremost platform for data visualization. Out of all the data analysis data-science related tools out there, it is the best when it comes to the graphical representation of data. In this chapter of TechVidvan\u2019s R tutorial series, we learn about the various graphs and plots that are possible to make through Graphical data Analysis in R. We looked at the functions and commands that produce these graphs. We, then, studied the gplot2 package and its various layers that add precision, details, and customizability to the graphs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>R is said to be the best platform for data visualization and graphical data analysis. It has a plethora of functions and commands needed to plot any kind of graph in any configuration for&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":78500,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1020],"tags":[2556,2557,2558,2559,2560,2561],"class_list":["post-78471","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-r","tag-bar-chart-in-r","tag-graphical-data-analysis-in-r","tag-graphical-data-analysis-with-r","tag-histogram-in-r","tag-pie-chart-in-r","tag-scatter-plot-in-r"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Graphical Data Analysis in R - Types and Examples - TechVidvan<\/title>\n<meta name=\"description\" content=\"Graphical Data Analysis in R - Various ways to represent data in R - Histogram, Bar Chart, Scatter Plot, Pie Chart, Time Series Graph,Stepped Line Graph etc\" \/>\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\/graphical-data-analysis-in-r\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Graphical Data Analysis in R - Types and Examples - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"Graphical Data Analysis in R - Various ways to represent data in R - Histogram, Bar Chart, Scatter Plot, Pie Chart, Time Series Graph,Stepped Line Graph etc\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/graphical-data-analysis-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-04T12:04:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/05\/Graphical-Data-Analysis-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=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Graphical Data Analysis in R - Types and Examples - TechVidvan","description":"Graphical Data Analysis in R - Various ways to represent data in R - Histogram, Bar Chart, Scatter Plot, Pie Chart, Time Series Graph,Stepped Line Graph etc","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\/graphical-data-analysis-in-r\/","og_locale":"en_US","og_type":"article","og_title":"Graphical Data Analysis in R - Types and Examples - TechVidvan","og_description":"Graphical Data Analysis in R - Various ways to represent data in R - Histogram, Bar Chart, Scatter Plot, Pie Chart, Time Series Graph,Stepped Line Graph etc","og_url":"https:\/\/techvidvan.com\/tutorials\/graphical-data-analysis-in-r\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2020-05-04T12:04:17+00:00","og_image":[{"width":802,"height":420,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/05\/Graphical-Data-Analysis-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":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/graphical-data-analysis-in-r\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/graphical-data-analysis-in-r\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"Graphical Data Analysis in R &#8211; Types and Examples","datePublished":"2020-05-04T12:04:17+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/graphical-data-analysis-in-r\/"},"wordCount":826,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/graphical-data-analysis-in-r\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/05\/Graphical-Data-Analysis-in-R.jpg","keywords":["Bar chart in R","Graphical data Analysis in R","Graphical Data Analysis with R","Histogram in R","pie chart in r","scatter plot in r"],"articleSection":["R Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/graphical-data-analysis-in-r\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/graphical-data-analysis-in-r\/","url":"https:\/\/techvidvan.com\/tutorials\/graphical-data-analysis-in-r\/","name":"Graphical Data Analysis in R - Types and Examples - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/graphical-data-analysis-in-r\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/graphical-data-analysis-in-r\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/05\/Graphical-Data-Analysis-in-R.jpg","datePublished":"2020-05-04T12:04:17+00:00","description":"Graphical Data Analysis in R - Various ways to represent data in R - Histogram, Bar Chart, Scatter Plot, Pie Chart, Time Series Graph,Stepped Line Graph etc","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/graphical-data-analysis-in-r\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/graphical-data-analysis-in-r\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/graphical-data-analysis-in-r\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/05\/Graphical-Data-Analysis-in-R.jpg","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/05\/Graphical-Data-Analysis-in-R.jpg","width":802,"height":420,"caption":"Graphical Data Analysis in R"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/graphical-data-analysis-in-r\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Graphical Data Analysis in R &#8211; Types and Examples"}]},{"@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\/78471","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=78471"}],"version-history":[{"count":0,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/78471\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/78500"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=78471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=78471"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=78471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}