{"id":78497,"date":"2020-05-05T10:00:37","date_gmt":"2020-05-05T04:30:37","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=78497"},"modified":"2020-05-05T10:00:37","modified_gmt":"2020-05-05T04:30:37","slug":"lattice-package-in-r","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/lattice-package-in-r\/","title":{"rendered":"Lattice Package in R with Functions and Graphs"},"content":{"rendered":"<p>Lattice is a powerful and elegant data visualization package for R programming, with an emphasis on multivariate data. It is inspired by trellis graphics.\u00a0 In this article of <strong>TechVidvan\u2019s R tutorial series<\/strong>, we are going to learn about the<strong> lattice package in R<\/strong>. We will study the functions and commands in the lattice package. We shall also look at the graphical capabilities of the package. So, let\u2019s go!<\/p>\n<h2><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Graphs-in-Lattice-Package.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78522\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Graphs-in-Lattice-Package.jpg\" alt=\"Lattice Package in R\" width=\"802\" height=\"420\" \/><\/a><br \/>\nLattice Package in R<\/h2>\n<p>The lattice package is a graphics and data visualization package inspired by the trellis graphics package. The main focus of the package is multivariate data. It has a wide variety of functions that enable it to create basic plots of the base R package as well as enhance on them. Let us start looking at all the functions and graphs in the lattice package, one-by-one.<\/p>\n<h3>1. Scatter Plots in the Lattice Package<\/h3>\n<p>The <strong>xyplot()<\/strong> function can be used to create a scatter plot in R using the lattice package. The iris dataset is perfectly suited for this example.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">library(lattice)\nxyplot(Sepal.Length ~ Petal.Length,\n       data = iris)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Scatter-Plots-in-the-Lattice-Package.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78519\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Scatter-Plots-in-the-Lattice-Package.jpg\" alt=\"Scatter Plots in the Lattice Package\" width=\"613\" height=\"382\" \/><\/a><\/p>\n<p>We can color the points of the scatter plot based on the categories.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">xyplot(Sepal.Length ~ Petal.Length,\n       data = iris,\n       group = Species,\n       auto.key = TRUE)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/color-the-points-of-the-scatter-plot-based-on-the-categories.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78520\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/color-the-points-of-the-scatter-plot-based-on-the-categories.jpg\" alt=\"color the points of the scatter plot based on the categories\" width=\"616\" height=\"402\" \/><\/a><\/p>\n<p>We can change the x and y labels and also add smoothing lines to the plot using the arguments in the <strong>xyplot() function.<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">xyplot(Sepal.Length ~ Petal.Length,\n       data = iris,\n       type = c(\"p\", \"g\", \"smooth\"),\n       xlab = \"Miles\/(US) gallons\",\n       ylab = \"Weight (1000lbs)\")<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/change-the-x-and-y-labels.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78521\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/change-the-x-and-y-labels.jpg\" alt=\"Lattice Package in R\" width=\"598\" height=\"391\" \/><\/a><\/p>\n<p>We can also create plots in multiple panels based on groups.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">xyplot(Sepal.Length ~ Petal.Length | Species,\n       group = Species,\n       data = iris,\n       type = c(\"p\", \"smooth\"),\n       scales = \"free\")<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/create-plots-in-multiple-panels-based-on-groups..jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78523\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/create-plots-in-multiple-panels-based-on-groups..jpg\" alt=\"create plots in multiple panels based on groups.\" width=\"617\" height=\"398\" \/><\/a><\/p>\n<h3>2. 3D scatter plots<\/h3>\n<p>Using the cloud() function, we can create a 3D scatter plot. We can use the iris dataset for this example.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">cloud(Sepal.Length ~ Sepal.Length*Petal.Width,\n      data = iris)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/create-a-3D-scatter-plot.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78524\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/create-a-3D-scatter-plot.jpg\" alt=\"create a 3D scatter plot in R\" width=\"391\" height=\"393\" \/><\/a><\/p>\n<p>We can use the group argument to color the point based on groups, similarly to the xyplot() function.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">cloud(Sepal.Length ~ Sepal.Length*Petal.Width,\n      data = iris,\n      group = Species,\n      auto.key = TRUE)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/the-group-argument-to-color-the-point-based-on-groups.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78525\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/the-group-argument-to-color-the-point-based-on-groups.jpg\" alt=\"the group argument to color the point based on groups\" width=\"333\" height=\"390\" \/><\/a><\/p>\n<h3>3. Boxplots in Lattice Package in R<\/h3>\n<p>The lattice package provides a bwplot() function that can be used to create a box plot. We will be using the ToothGrowth data set for this example.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">ToothGrowth$dose &lt;- as.factor(ToothGrowth$dose)\nbwplot(len ~ dose, data = ToothGrowth,\n       xlab = \"Dose\",\n       ylab = \"Length\")<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/create-a-box-plot.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78526\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/create-a-box-plot.jpg\" alt=\"create a box plot in R\" width=\"615\" height=\"380\" \/><\/a><\/p>\n<p>Using the panel argument of <strong>bwplot<\/strong>() function, we can make a violin plot as well.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">bwplot(len ~ dose, data = ToothGrowth,\n           xlab = \"Dose\",\n           ylab = \"Length\",\n           panel = panel.violin)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/the-panel-argument-of-bwplot-function.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78527\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/the-panel-argument-of-bwplot-function.jpg\" alt=\"the panel argument of bwplot() function\" width=\"594\" height=\"389\" \/><\/a><\/p>\n<p>We can also create multiple plots based on the groups.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">bwplot(len ~ supp|dose,\n       data = ToothGrowth,\n       layout = c(3,1),\n       xlab = \"Dose\",\n       ylab = \"Length\")<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/create-multiple-plots-based-on-the-groups.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78528\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/create-multiple-plots-based-on-the-groups.jpg\" alt=\"create multiple plots based on the groups\" width=\"604\" height=\"385\" \/><\/a><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">bwplot(len ~ supp|dose,\n       data = ToothGrowth,\n       layout = c(3,1),\n       xlab = \"Dose\",\n       ylab = \"Length\",\n       panel = panel.violin)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/using-panel-agreement.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78529\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/using-panel-agreement.jpg\" alt=\"using panel agreement in R\" width=\"592\" height=\"383\" \/><\/a><\/p>\n<h3>4. Dotplots in Lattice Package in R<\/h3>\n<p>The R <strong>dotplot() function<\/strong>\u00a0 enables us to create dot plots in R. We will again use the <strong>ToothGrowth<\/strong> dataset for this example.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">dotplot(len ~ dose,\n        data = ToothGrowth,\n        xlab = \"Dose\",\n        ylab = \"Length\")<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/The-dotplot-function.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78530\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/The-dotplot-function.jpg\" alt=\"The dotplot() function in R\" width=\"601\" height=\"388\" \/><\/a><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">dotplot(len ~ supp|dose,\n        data = ToothGrowth,\n        layout = c(3,1),\n        xlab = \"Dose\",\n        ylab = \"Length\")<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/final-output-of-the-dotplot-function.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78531\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/final-output-of-the-dotplot-function.jpg\" alt=\"final output of the dotplot() function in R\" width=\"592\" height=\"391\" \/><\/a><\/p>\n<h3>5. Strip Plots in the Lattice Package<\/h3>\n<p>Strip plots can be created in R using the <strong>stripplot()<\/strong> function of the lattice package. We will be using the same <strong>ToothGrowth<\/strong> dataset.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">stripplot(len ~ dose,\n          data = ToothGrowth,\n          jitter.data = TRUE,\n          pch = 19,\n          xlab = \"Dose\",\n          ylab = \"Length\")<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/stripplot-function.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78532\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/stripplot-function.jpg\" alt=\"stripplot() function in R\" width=\"598\" height=\"399\" \/><\/a><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">stripplot(len ~ supp|dose,\n          data = ToothGrowth,\n          layout = c(3,1),\n          xlab = \"Dose\",\n          ylab = \"Length\",\n          jitter.data = TRUE)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/final-output-in-stripplot-function.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-78533 size-full\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/final-output-in-stripplot-function.jpg\" alt=\"Lattice package in R\" width=\"603\" height=\"386\" \/><\/a><\/p>\n<h3>6. Density Plots in the Lattice Package<\/h3>\n<p>We can create density plots in R using the <strong>densityplot()<\/strong> function of the lattice package.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">densityplot(~ len, data = ToothGrowth,\n                  plot.points = FALSE)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/the-densityplot-function.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78534\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/the-densityplot-function.jpg\" alt=\"the densityplot() function in R\" width=\"605\" height=\"394\" \/><\/a><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">densityplot(~ len, data = ToothGrowth,\n            plot.points = FALSE,\n            groups = dose,\n            auto.key = TRUE)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/ffinal-output-of-the-densityplot-function.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-78535 size-full\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/ffinal-output-of-the-densityplot-function.jpg\" alt=\"Lattice package in R\" width=\"587\" height=\"403\" \/><\/a><\/p>\n<h3>7. Histograms in the Lattice Package<\/h3>\n<p>To create a histogram using the lattice package, we can use the <strong>histogram()<\/strong> function.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">histogram(~ len, data = ToothGrowth, \n          breaks = 20)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Histograms-in-the-Lattice-Package.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78536\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/05\/Histograms-in-the-Lattice-Package.jpg\" alt=\"Histograms in the Lattice Package\" width=\"609\" height=\"393\" \/><\/a><\/p>\n<h2>Summary<\/h2>\n<p>In this chapter of TechVidvan\u2019s R tutorial series, we learned about the <strong>Lattice Package in R<\/strong>. We studied the functions of the R Lattice package that create the various graphs and plots. We looked at how to create graphs like scatter plots, 3D scatter plots, boxplots, dotplots, stripplots, <a href=\"https:\/\/www.rdocumentation.org\/packages\/lattice\/versions\/0.3-1\/topics\/densityplot\">density plots<\/a>, and histograms.<\/p>\n<p><strong>Do share your feedback in the comment section.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lattice is a powerful and elegant data visualization package for R programming, with an emphasis on multivariate data. It is inspired by trellis graphics.\u00a0 In this article of TechVidvan\u2019s R tutorial series, we are&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":78522,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1020],"tags":[2574,2575],"class_list":["post-78497","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-r","tag-lattice-package-in-r","tag-r-lattice-package"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Lattice Package in R with Functions and Graphs - TechVidvan<\/title>\n<meta name=\"description\" content=\"Lattice Package in R - Learn what is R lattice package and its functions, how to create graphs - scatter plots,boxplots,dotplots,stripplots,density plots,histograms\" \/>\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\/lattice-package-in-r\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Lattice Package in R with Functions and Graphs - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"Lattice Package in R - Learn what is R lattice package and its functions, how to create graphs - scatter plots,boxplots,dotplots,stripplots,density plots,histograms\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/lattice-package-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-05T04:30:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/05\/Graphs-in-Lattice-Package.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":"Lattice Package in R with Functions and Graphs - TechVidvan","description":"Lattice Package in R - Learn what is R lattice package and its functions, how to create graphs - scatter plots,boxplots,dotplots,stripplots,density plots,histograms","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\/lattice-package-in-r\/","og_locale":"en_US","og_type":"article","og_title":"Lattice Package in R with Functions and Graphs - TechVidvan","og_description":"Lattice Package in R - Learn what is R lattice package and its functions, how to create graphs - scatter plots,boxplots,dotplots,stripplots,density plots,histograms","og_url":"https:\/\/techvidvan.com\/tutorials\/lattice-package-in-r\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2020-05-05T04:30:37+00:00","og_image":[{"width":802,"height":420,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/05\/Graphs-in-Lattice-Package.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\/lattice-package-in-r\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/lattice-package-in-r\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"Lattice Package in R with Functions and Graphs","datePublished":"2020-05-05T04:30:37+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/lattice-package-in-r\/"},"wordCount":501,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/lattice-package-in-r\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/05\/Graphs-in-Lattice-Package.jpg","keywords":["Lattice Package in R","R Lattice Package"],"articleSection":["R Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/lattice-package-in-r\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/lattice-package-in-r\/","url":"https:\/\/techvidvan.com\/tutorials\/lattice-package-in-r\/","name":"Lattice Package in R with Functions and Graphs - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/lattice-package-in-r\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/lattice-package-in-r\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/05\/Graphs-in-Lattice-Package.jpg","datePublished":"2020-05-05T04:30:37+00:00","description":"Lattice Package in R - Learn what is R lattice package and its functions, how to create graphs - scatter plots,boxplots,dotplots,stripplots,density plots,histograms","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/lattice-package-in-r\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/lattice-package-in-r\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/lattice-package-in-r\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/05\/Graphs-in-Lattice-Package.jpg","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/05\/Graphs-in-Lattice-Package.jpg","width":802,"height":420,"caption":"Lattice Package in R"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/lattice-package-in-r\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Lattice Package in R with Functions and Graphs"}]},{"@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\/78497","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=78497"}],"version-history":[{"count":0,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/78497\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/78522"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=78497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=78497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=78497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}