

{"id":4893,"date":"2017-12-26T12:49:40","date_gmt":"2017-12-26T07:19:40","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=4893"},"modified":"2021-08-25T17:25:49","modified_gmt":"2021-08-25T11:55:49","slug":"r-lattice-package","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/r-lattice-package\/","title":{"rendered":"R Lattice Package | A must-learn concept for all R programmers"},"content":{"rendered":"<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:2049,&quot;href&quot;:&quot;https:\\\/\\\/www.r-project.org\\\/bugs.html&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20250923123728\\\/https:\\\/\\\/www.r-project.org\\\/bugs.html&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-11 00:01:11&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-14 20:26:43&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-18 08:56:45&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-21 16:15:39&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-25 07:23:31&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-29 22:14:30&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-02 01:41:45&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-05 11:01:42&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-09 12:38:42&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-12 13:53:09&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-15 15:23:46&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-19 02:36:51&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-22 10:50:48&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-26 13:56:56&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-29 15:22:56&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-03 07:22:09&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-06 07:25:06&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-09 12:49:44&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-12 21:28:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-16 00:10:35&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-19 03:50:40&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-22 17:40:40&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-02-26 08:21:43&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-01 12:21:52&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-03-04 14:00:15&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-07 15:46:37&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-11 13:16:51&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-15 17:29:22&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-19 02:02:09&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-22 08:29:29&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-25 13:57:23&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-28 16:05:21&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-31 23:28:44&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-04 10:15:06&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-07 20:22:17&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-10 21:43:30&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-14 04:20:43&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-04-17 05:57:17&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-04-21 01:56:33&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-26 00:30:08&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-29 05:36:52&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-02 15:57:53&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-06 10:14:50&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-09 15:07:27&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-13 07:26:05&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-16 07:34:31&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-19 14:33:23&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-22 20:54:41&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-26 03:30:08&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-29 06:56:00&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-06-02 15:32:45&quot;,&quot;http_code&quot;:503}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-02 15:32:45&quot;,&quot;http_code&quot;:503},&quot;process&quot;:&quot;done&quot;}]'><\/div>\n<p>In this tutorial of R lattice package, we will learn about graphs, graphics and R lattice graphs. Along with this, we will also discuss different types of lattice functions which we use in lattice graphs.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/R-Lattice-Package.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-60961\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/R-Lattice-Package.jpg\" alt=\"R Lattice Package\" width=\"802\" height=\"420\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/R-Lattice-Package.jpg 802w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/R-Lattice-Package-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/R-Lattice-Package-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/R-Lattice-Package-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/R-Lattice-Package-520x272.jpg 520w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/a><\/p>\n<p>So, let&#8217;s start the R Lattice package tutorial.<\/p>\n<h2>Introduction to R Lattice Package<\/h2>\n<p><b>What is Lattice?<\/b><\/p>\n<p>A lattice in R is known for its<em> robust, elegant and aesthetic data visualisation system.<\/em> That is, being inspired by Trellis graphics. Although, it is designed with an emphasis on multivariate data which allows easy conditioning to produce &#8220;small multiple&#8221; plots.<\/p>\n<h3>1. Lattice Graphs<\/h3>\n<p>The lattice package was written by Deepayan Sarkar. The package provides better defaults. It also provides the ability to display multivariate relationships and it improves on the base-R graphics. This package supports the creation of trellis graphs:<\/p>\n<ul>\n<li>graphs that display a variable or<\/li>\n<li>the relationship between variables, conditioned on one or<\/li>\n<li>other variables.<\/li>\n<\/ul>\n<p><b>The typical format is<\/b>:<br \/>\n<b><\/b><\/p>\n<p><em>graph_type(formula, data=)<\/em><\/p>\n<p>We will select graph_type from the table listed below. The formula displays the variables and other types of conditioning.<br \/>\n<b><\/b><\/p>\n<p><b>For example<\/b>:<\/p>\n<p>~x|A for each level of factor (A), it displays a numerical variable which is x;<br \/>\ny~x | A*B for every combination of factor A and B, there exists a relationship between the variables x and y.<br \/>\n~x means display numeric variable x alone.<\/p>\n<table dir=\"ltr\" style=\"height: 596px\" width=\"698\">\n<colgroup>\n<col width=\"100\" \/>\n<col width=\"100\" \/>\n<col width=\"100\" \/><\/colgroup>\n<tbody>\n<tr>\n<td><strong>Graph_type<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<td>\n<div>\n<div><strong>Formula Examples<\/strong><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>barchart<\/td>\n<td>bar chart<\/td>\n<td>x~A or A~x<\/td>\n<\/tr>\n<tr>\n<td>bwplot<\/td>\n<td>boxplot<\/td>\n<td>x~A or A~x<\/td>\n<\/tr>\n<tr>\n<td>cloud<\/td>\n<td>3D scatter plot<\/td>\n<td>z~x*y|A<\/td>\n<\/tr>\n<tr>\n<td>contourplot<\/td>\n<td>3D contour plot<\/td>\n<td>z~x*y|A<\/td>\n<\/tr>\n<tr>\n<td>Densityplot<\/td>\n<td>kernel density plot<\/td>\n<td>~x|A*B<\/td>\n<\/tr>\n<tr>\n<td>dotplot<\/td>\n<td>dotplot<\/td>\n<td>~x|A<\/td>\n<\/tr>\n<tr>\n<td>histogram<\/td>\n<td>histogram<\/td>\n<td>~x<\/td>\n<\/tr>\n<tr>\n<td>levelplot<\/td>\n<td>3D level plot<\/td>\n<td>z~y*x<\/td>\n<\/tr>\n<tr>\n<td>Parallel<\/td>\n<td>parallel coordinates plot<\/td>\n<td>data frame<\/td>\n<\/tr>\n<tr>\n<td>Splom<\/td>\n<td>scatterplot matrix<\/td>\n<td>data frame<\/td>\n<\/tr>\n<tr>\n<td>stripplot<\/td>\n<td>strip plots<\/td>\n<td>A~x or x~A<\/td>\n<\/tr>\n<tr>\n<td>xyplot<\/td>\n<td>scatterplot matrix<\/td>\n<td>y~x|A<\/td>\n<\/tr>\n<tr>\n<td>wireframe<\/td>\n<td>3D wireframe graph<\/td>\n<td>z~y*x<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><em><strong>Wait! Have you checked &#8211; <a href=\"https:\/\/data-flair.training\/blogs\/r-graphical-models-tutorial\/\">R Graphical Models Tutorial<\/a><\/strong><\/em><\/p>\n<h3>2. Customizing R Lattice Graphs<\/h3>\n<p><b>For example<\/b>:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">library(lattice)\r\npanel.smoother &lt;- function(x, y) {\r\n  panel.xyplot(x, y) # show points\r\n  panel.loess(x, y) # show smoothed line\r\n}\r\nattach(mtcars)\r\n# divide horsepower into three bands\r\nhp &lt;- cut(hp,3) \r\nxyplot(mpg~wt|hp, scales=list(cex=.8, col=\"red\"),\r\n       panel=panel.smoother,\r\n       xlab=\"Weight\", ylab=\"Miles per Gallon\",\r\n       main=\"MGP vs Weight by Horse Power\")\r\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Customizing-R-Lattice-Graphs.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-61046 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Customizing-R-Lattice-Graphs.jpg\" alt=\"Customizing R Lattice Graphs\" width=\"1299\" height=\"741\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Customizing-R-Lattice-Graphs.jpg 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Customizing-R-Lattice-Graphs-150x86.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Customizing-R-Lattice-Graphs-300x171.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Customizing-R-Lattice-Graphs-768x438.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Customizing-R-Lattice-Graphs-1024x584.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Customizing-R-Lattice-Graphs-520x297.jpg 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<h3>3. R Graphics<\/h3>\n<p><b>3.1 R has two independent graphics subsystems:<\/b><\/p>\n<p><strong>Traditional graphics<\/strong><\/p>\n<ul>\n<li>Available in R from the beginning.<\/li>\n<li>A rich collection of tools.<\/li>\n<li>Not very flexible.<\/li>\n<\/ul>\n<p><strong>Grid graphics<\/strong><\/p>\n<ul>\n<li>recent (2000)<\/li>\n<li>A low-level tool, flexible.<\/li>\n<\/ul>\n<p><b>3.2 Grid forms the basis of two high-level graphics systems:<\/b><\/p>\n<ul>\n<li><b>Lattice<\/b>: based on Trellis graphics (Cleveland).<\/li>\n<li><b>ggplot2<\/b>: inspired by \u201cGrammar of Graphics\u201d(Wilkinson).<\/li>\n<\/ul>\n<p><em><strong>Do you know about <a href=\"https:\/\/data-flair.training\/blogs\/graphical-data-analysis-with-r\/\">Graphical Data Analysis with R<\/a><\/strong><\/em><\/p>\n<h3>R Lattice Package<\/h3>\n<ul>\n<li>Trellis graphics for <a href=\"https:\/\/www.r-project.org\/bugs.html\">R<\/a> (developed in S).<\/li>\n<li>A powerful high-level data visualization system.<\/li>\n<li>Provides common statistical graphics with conditioning.<\/li>\n<li>Emphasis on multivariate data.<\/li>\n<li>Enough for typical graphics needs.<\/li>\n<li>Flexible enough to handle most non-standard requirements.<\/li>\n<\/ul>\n<p><b>Traditional user interface<\/b>:<\/p>\n<ul>\n<li>Collection of high-level functions: xyplot, dotplot, etc.<\/li>\n<li>Interface based on formula and data source.<\/li>\n<\/ul>\n<h4>High-Level Functions in Lattice<\/h4>\n<p><b>Function <\/b>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<b>\u00a0\u00a0Default Display<\/b><\/p>\n<p>histogram() \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Histogram<br \/>\ndensityplot()\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Kernel Density Plot<br \/>\nqqmath()\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Theoretical Quantile Plot<br \/>\nqq()\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Two-sample Quantile Plot<br \/>\nstripplot()\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Stripchart (Comparative 1-D Scatter Plots)<br \/>\nbwplot()\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Comparative Box-and-Whisker Plots<br \/>\nbarchart()\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Bar Plot<br \/>\ndotplot()\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Cleveland Dot Plot<br \/>\nxyplot()\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Scatter Plot<br \/>\nsplom()\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Scatter-Plot Matrix<br \/>\ncontourplot()\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Contour Plot of Surfaces<br \/>\nlevelplot()\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0False Color Level Plot of Surfaces<br \/>\nwireframe()\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Three-dimensional Perspective Plot of Surface<br \/>\ncloud()\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Three-dimensional Scatter Plot<br \/>\nparallel()\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Parallel Coordinates Plot<\/p>\n<h2>Summary<\/h2>\n<div class=\"\">\n<p class=\"public-DraftStyleDefault-block public-DraftStyleDefault-ltr\">In this R Lattice Package tutorial, we have studied in deep about different graphics and their functions. Moreover, learned their properties which help in creating graphs and functions. Still, if you have any query regarding R Lattice Package, ask in the comment section.<\/p>\n<p><em><strong>Now, it&#8217;s time to learn &#8211; <a href=\"https:\/\/data-flair.training\/blogs\/save-graphs-to-files-in-r\/\">How to Save Graphs to Files in R programming<\/a><\/strong><\/em><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial of R lattice package, we will learn about graphs, graphics and R lattice graphs. Along with this, we will also discuss different types of lattice functions which we use in lattice&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":60961,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51],"tags":[20323,20322],"class_list":["post-4893","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-r","tag-r-lattice-graphs","tag-r-lattice-package"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>R Lattice Package | A must-learn concept for all R programmers - DataFlair<\/title>\n<meta name=\"description\" content=\"With this R lattice package tutorial, learn about lattice graphs, customizing R lattice graphs, R graphics and high-level functions in lattice package.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/r-lattice-package\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"R Lattice Package | A must-learn concept for all R programmers - DataFlair\" \/>\n<meta property=\"og:description\" content=\"With this R lattice package tutorial, learn about lattice graphs, customizing R lattice graphs, R graphics and high-level functions in lattice package.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/r-lattice-package\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-12-26T07:19:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-25T11:55:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/R-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=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"R Lattice Package | A must-learn concept for all R programmers - DataFlair","description":"With this R lattice package tutorial, learn about lattice graphs, customizing R lattice graphs, R graphics and high-level functions in lattice package.","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:\/\/data-flair.training\/blogs\/r-lattice-package\/","og_locale":"en_US","og_type":"article","og_title":"R Lattice Package | A must-learn concept for all R programmers - DataFlair","og_description":"With this R lattice package tutorial, learn about lattice graphs, customizing R lattice graphs, R graphics and high-level functions in lattice package.","og_url":"https:\/\/data-flair.training\/blogs\/r-lattice-package\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2017-12-26T07:19:40+00:00","article_modified_time":"2021-08-25T11:55:49+00:00","og_image":[{"width":802,"height":420,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/R-Lattice-Package.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/r-lattice-package\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/r-lattice-package\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"R Lattice Package | A must-learn concept for all R programmers","datePublished":"2017-12-26T07:19:40+00:00","dateModified":"2021-08-25T11:55:49+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/r-lattice-package\/"},"wordCount":585,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/r-lattice-package\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/R-Lattice-Package.jpg","keywords":["R Lattice Graphs","R Lattice Package"],"articleSection":["R Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/r-lattice-package\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/r-lattice-package\/","url":"https:\/\/data-flair.training\/blogs\/r-lattice-package\/","name":"R Lattice Package | A must-learn concept for all R programmers - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/r-lattice-package\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/r-lattice-package\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/R-Lattice-Package.jpg","datePublished":"2017-12-26T07:19:40+00:00","dateModified":"2021-08-25T11:55:49+00:00","description":"With this R lattice package tutorial, learn about lattice graphs, customizing R lattice graphs, R graphics and high-level functions in lattice package.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/r-lattice-package\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/r-lattice-package\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/r-lattice-package\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/R-Lattice-Package.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/R-Lattice-Package.jpg","width":802,"height":420,"caption":"R Lattice Package"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/r-lattice-package\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"R Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/r\/"},{"@type":"ListItem","position":3,"name":"R Lattice Package | A must-learn concept for all R programmers"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team provides industry-driven content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our expert educators focus on delivering value-packed, easy-to-follow resources for tech enthusiasts and professionals.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam2\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/4893","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=4893"}],"version-history":[{"count":14,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/4893\/revisions"}],"predecessor-version":[{"id":61683,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/4893\/revisions\/61683"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/60961"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=4893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=4893"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=4893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}