<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jesse Libra on Medium]]></title>
        <description><![CDATA[Stories by Jesse Libra on Medium]]></description>
        <link>https://medium.com/@jessemlibra?source=rss-778bce57e843------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fS3wMGjXjEJAlV0LUjKB9w.jpeg</url>
            <title>Stories by Jesse Libra on Medium</title>
            <link>https://medium.com/@jessemlibra?source=rss-778bce57e843------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 10:31:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jessemlibra/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Essential dplyr]]></title>
            <link>https://medium.com/data-science/the-essential-dplyr-cdf3057c1c6c?source=rss-778bce57e843------2</link>
            <guid isPermaLink="false">https://medium.com/p/cdf3057c1c6c</guid>
            <category><![CDATA[data-manipulation]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[r]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[Jesse Libra]]></dc:creator>
            <pubDate>Thu, 04 Jun 2020 17:03:40 GMT</pubDate>
            <atom:updated>2020-06-04T19:33:15.378Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*fsqgRA67D72kVIkhel0fMA.png" /></figure><h4>Many R classes wait to teach this package. Luckily, you have the internet.</h4><p>This cryptically named package is a lifesaver for cleaning, organizing, and looking at data in R. Many professors wait to teach dplyr in favor of teaching basic R methods as a foundation, but that doesn’t mean you have to wait to learn it. In this article, we’ll look at some of the most time-saving dplyr functions and learn how to use them to manipulate datasets.</p><h4>What is dplyr?</h4><p>Dplyr is a package written by Hadley Wickham and Romain Francois to help you manipulate raw tabular data into a neat dataset ready for analysis. In his <a href="https://www.jstatsoft.org/article/view/v059i10">2014 paper</a> on the package’s precursor, plyr, Wickham wrote:</p><blockquote>It is often said that 80% of data analysis is spent on the process of cleaning and preparing the data.</blockquote><p>Prepping data still takes time, but we can spend significantly less than our predecessors thanks to dplyr and other <a href="https://www.tidyverse.org/">tidyverse</a> packages. In this article, I’ll use Mexico City’s air quality dataset as a base for showcasing the following key dplyr functions:</p><ul><li><strong>tibble()</strong>: Produces a <a href="https://cran.r-project.org/web/packages/tibble/vignettes/tibble.html#:~:text=Tibbles%20are%20a%20modern%20take,converting%20character%20vectors%20to%20factors).">tibble</a> rather than your standard data frame.</li><li><strong>mutate()</strong>: Creates new calculated fields using other functions.</li><li><strong>filter()</strong>: Filters your rows by specifying the rows you want to keep.</li><li><strong>select()</strong>: Selects the columns you want to keep in the order you want them to appear.</li><li><strong>The %&gt;% operator </strong>allows for piping.</li><li><strong>group_by() </strong>groups your data based on the value of a various fields.</li><li><strong>summarize()</strong> summarizes your data based on your established groups.</li><li><strong>inner_join() </strong>will return all rows from your first table that have matching values in your second table, and all columns from both. If there are multiple matches, all combinations will be returned. It is one of the many join options included in the dplyr package.</li><li><strong>arrange()</strong> sort your table by a specific field. It automatically sorts in ascending order unless <strong>desc()</strong> is used.</li></ul><h4>Dplyring Mexico City’s air quality data</h4><p>We’re going to look at the functions in the dplyr package by performing some preliminary data manipulation on an air quality dataset for Mexico City. The code below will download data for <a href="https://en.wikipedia.org/wiki/Particulates">particulate matter</a> (PM) concentrations from Mexico City’s air quality monitoring website from January 2016 to April 2020. The for-loop allows you to specify the years included in your data by editing the z vector.</p><pre>##getting the data<br>  data&lt;- data.frame()<br>  z&lt;-c(2016,2017,2018,2019,2020)<br>  for(i in z) {<br>    url &lt;- paste(&quot;<a href="http://www.aire.cdmx.gob.mx/opendata/promedios_diarios/promedios_">http://www.aire.cdmx.gob.mx/opendata/promedios_diarios/promedios_</a>&quot;,i,&quot;_ps.csv&quot;, sep = &quot;&quot;)<br>    data &lt;- rbind(data, read.csv(url,header = T, skip = 8))<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*51q6g5MgT1XRvOnMHWPnuw.jpeg" /><figcaption>Mexico City on a rare clear day, photo by the author</figcaption></figure><p><strong>Let’s start with the question</strong>. I want to know if April 2020 had better air quality than previous years due to the coronavirus lockdown. This is a pretty complex question, but to get a quick view of whether this is worth delving into I’ll compare 2020 monthly means to monthly means from previous years.</p><p>Let’s look at the current state of the data by changing it into a tibble:</p><pre>pm &lt;- tibble(data)<br>pm</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*ChYim1PtdgN_efNFjIaGCQ.png" /></figure><p>The tibble looks better than a regular data frame: on typing its name, R gives you the dimensions, a 10-row preview of the data, and the classes of each column. With respect to the actual data in the dataset, we can see that it contains daily measurements of PM10 and PM2.5 in <a href="http://www.aire.cdmx.gob.mx/opendata/catalogos/cat_unidades.csv">micrograms per cubic meter</a> at a number of stations throughout Mexico City.</p><p>To get at our question, we’re going to have to do some processing.</p><h4>Mutate, filter, select, rename and %&gt;%</h4><p>Below, I used the <strong>mutate</strong> command to create a new date field which is in date-time (POSIXlt) format and to create separate fields for the month and year. I filtered the data via the <strong>filter</strong> command to get rid of any NAs, and then I reordered the fields using <strong>select</strong>. I used <strong>rename</strong> to rename my datetime field, datex, as “date”.</p><pre>pmclean &lt;- pm %&gt;%<br>  mutate(datex = strptime(date,&quot;%d/%m/%Y&quot;), <br>         month = month(datex), year = year(datex)) %&gt;%<br>  filter(!is.na(value)) %&gt;%<br>  select(datex, id_station:value, month, year) %&gt;%<br>  rename(date = datex)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*gu_3Eu1wkSNSnVtH5kU75Q.png" /></figure><p>Something else you may have noticed is the <strong>%&gt;%</strong> operator. This operator is loaded with the dplyr package and roughly translates to “then”. It allows us to apply the code of the next line to the pm dataset, rather than having to rewrite the dataset name in every function and assign our changes to intermediate variables along the way. This process is called piping.</p><p>Without it, the code would look like this:</p><pre>##clean<br>pm2&lt;- mutate(pm, datex = strptime(date,&quot;%d/%m/%Y&quot;), <br>             month = month(datex), year = year(datex))<br>pm3 &lt;- filter(pm2, !is.na(value))<br>pm4 &lt;-  select(pm3, datex, id_station:value, month, year)<br>pmclean &lt;- rename(pm4, date = datex)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*ngkHTjkOvymz2FVJDZtFsw.png" /></figure><p>The results are the same, but using the <strong>%&gt;% </strong>operator got us there in fewer keystrokes and required the creation of fewer intermediate variables, keeping our work space neat.</p><h4>Group_by and summarize</h4><p>Now that my dataset is a little cleaner, I want to look at some summary information for the value field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*MNftPCXr9nAgJXXeIX6RqA.png" /></figure><p>This summary doesn’t tell me much because it includes both PM 10 and PM 2.5 values. PM 10 and PM 2.5 have different behaviors, health impacts and regulatory thresholds, so it doesn’t make much sense to analyze them together.</p><p>Fortunately, dplyr has an easy solution. To separate my data into groups I can use the <strong>group_by </strong>function, grouping by the id_parameter field. I also know that I want to compare the means of each month of 2020 with the means of the same months for past years, so I’ll also group by month and year. This won’t have any visible effect on my pmclean dataset, but if I create a new table using <strong>summarize</strong>, the functions listed will be calculated based on these groups.</p><p>Here I <strong>summarize </strong>the value field by mean, median, min and max values, and assign it to the pmsummary data table. Notice that the assignment is placed at the top of the pipe.</p><pre>pmsummary &lt;- pmclean %&gt;%  <br>      group_by(id_parameter, year, month) %&gt;%<br>      summarize(&quot;mean&quot; = mean(value), &quot;median&quot; = median(value), <br>                  &quot;min&quot; = min(value), &quot;max&quot; = max(value))</pre><p>The result is the following tibble. You can see that the mean, median, min and max are calculated for every unique combination of month, year, and parameter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*Ty_kus1lEXMghPCUj8lsGw.png" /></figure><h4>Arrange</h4><p><strong>Arrange </strong>does essentially what <strong>sort </strong>does in Excel. Let’s use it to compare the mean contaminant concentrations for the first four months in 2020 with the same months in previous years. To do this, we’ll use <strong>filter </strong>to get the parameter and months we want, and then we’ll <strong>arrange </strong>the results by the month and then the mean. I don’t do this here, but you can use the <strong>desc </strong>function within <strong>arrange </strong>to arrange your data in descending order.</p><pre>##PM10<br>  arrange(filter(pmsummary,id_parameter == &quot;PM10&quot; &amp; <br>                   month %in% 1:4),month, mean)<br>##PM2.5<br>  arrange(filter(pmsummary,id_parameter == &quot;PM2.5&quot; &amp; <br>                   month %in% 1:4),month, mean)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VvLrKe2HReRQ7nRCxPpdmQ.png" /></figure><p>Here we can see that April 2020 did indeed have a lower mean concentration of both PM 10 and PM 2.5, but so did January and February 2020, before Mexico City entered coronavirus lockdown. Let’s look at the information visually.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*AerxS97NRe9IdcdA0B0EMg.png" /><figcaption>The average monthly PM 2.5 (open triangles) and PM 10 (filled circles) concentrations for the last five years, by month. 2020 is plotted in coral so it stands out.</figcaption></figure><pre>##Graph the summary data<br>    plot(pmsummary$month,pmsummary$mean, <br>       col = ifelse(pmsummary$year == &quot;2020&quot;, &quot;coral1&quot;, &quot;grey&quot;),<br>      pch = ifelse(pmsummary$id_parameter == &#39;PM10&#39;, 19,2),<br>      xlab = &quot;Month&quot;,<br>      ylab = &quot;PM Mean Concentration (ug/m3)&quot;,<br>      cex = 2,<br>      type =&quot;p&quot; )<br>    legend(&quot;bottomright&quot;, c(&quot;PM10&quot;, &quot;PM2.5&quot;, &quot;2020&quot;),<br>       col = c(&quot;grey&quot;,&quot;grey&quot;, &quot;coral1&quot;),<br>       pch = c(20, 2, 1))</pre><p>This makes it much easier to see the trend from month to month. Interestingly, mean PM 10 concentration in March 2020 was pretty average when compared to other years, and then drastically dipped in April. For PM 2.5 we see a slight increase from March 2020 to April 2020. While far from definitive, I would say the question warrants further analysis.</p><h4>Joins with dplyr</h4><p>There are a number of join functions that come with dplyr. They include your standard inner, right, and left joins, as well as functions that let you filter your table based on other tables like anti_join(), semi_join(), and even nest_join, which lets you nest tibbles of data from one table within rows of another.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*ngkHTjkOvymz2FVJDZtFsw.png" /><figcaption>Our clean particulate matter tibble</figcaption></figure><p>Let’s say I want to look at my air quality data at the station level. My data at the moment is broken down by stations but I don’t know much about what these station labels mean. Lucky for us, Mexico City also publishes their station catalog:</p><pre>url &lt;- &quot;<a href="http://www.aire.cdmx.gob.mx/opendata/catalogos/cat_estacion.csv">http://www.aire.cdmx.gob.mx/opendata/catalogos/cat_estacion.csv</a>&quot;<br>datastations &lt;- tibble(read.csv(url,header = T, skip = 1))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/1*64J0VNA61OOg-GkVkxM28Q.png" /></figure><p>Their station data provides us with the latitude, longitude and elevation of each station. Let’s use one of the <strong>join</strong> dplyr functions to add this information to our main dataset.</p><p>Every value in our pmclean dataset should have a station associated with it (the station where it was measured) and every station in our dataset should be in the Mexico City stations catalog. This means we can do an inner join. We want to join on station abbreviation, which is id_station in our pmclean dataset and cve_estac in our stations dataset. Let’s fix that and do the join.</p><pre>stations &lt;- datastations %&gt;%<br>   select(cve_estac:obs_estac)%&gt;%<br>   rename(id_station = cve_estac)</pre><pre>pmstations &lt;- inner_join(pmclean,stations)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*OINSkpwOs8zUBLJzmiYDYA.png" /></figure><p>You can see that because I renamed my join field in the stations dataset to match the one in my pmclean dataset, the join operation doesn’t need me to specify which fields I was joining on; it automatically selects the matching fields.</p><h4>Do more data science</h4><p>Cleaning and manipulating data isn’t the sexiest part of data analysis, but it is a critical process that doesn’t have to be painful. Play around with the dataset we’ve looked at today or use one of the <a href="https://dplyr.tidyverse.org/reference/">datasets</a> that comes with dplyr to get comfortable with these functions. Once you’ve got them in your toolkit, you’ll spend less time and tears figuring out how to manipulate your data and more time doing data science.</p><p>All of the code used in this article can be found <a href="https://github.com/jesselibra/dplyr/blob/master/dplyr_mexico_city.R">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cdf3057c1c6c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/the-essential-dplyr-cdf3057c1c6c">The Essential dplyr</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Base Plotting in R]]></title>
            <link>https://medium.com/data-science/base-plotting-in-r-eb365da06b22?source=rss-778bce57e843------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb365da06b22</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[r]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[plotting]]></category>
            <dc:creator><![CDATA[Jesse Libra]]></dc:creator>
            <pubDate>Wed, 27 May 2020 13:37:40 GMT</pubDate>
            <atom:updated>2020-05-27T22:34:50.669Z</atom:updated>
            <content:encoded><![CDATA[<h4>Using the base plotting system in R can seem overwhelming, but it doesn’t have to be.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aETDJF0gLTQeXIQ2Mgv6mA.png" /><figcaption>A basic xy scatterplot in R (left) vs a scatterplot using some quick tricks (right)</figcaption></figure><p>Base plotting in R can be intimidating. It takes a canvas approach to plot construction, allowing you to paint layer after layer of detail onto your graphics. As a result, there is a seemingly endless number of functions and attributes to learn, but there’s no need to panic or jump straight to ggplot. This article highlights the versatility of the base plot() function while giving you some quick tricks to create beautiful plots.</p><p>Throughout this article, I use Edgar Anderson’s Iris dataset, so you can copy the code and see it in action. We will use this dataset to create and compare four graphs:</p><ol><li>The most basic plot you can create in R, an XY scatterplot</li><li>A plot using color to subset a scatterplot of the iris dataset by species</li><li>A plot with customized fonts, colors, and sizes, and</li><li>A plot with a background-color and grid.</li></ol><p>To load the dataset package and learn a little bit about the Iris dataset, enter the following code in your RStudio console:</p><pre><strong>library</strong>(datasets)<br><strong>help</strong>(iris)</pre><h3>Basic plot vs a plot colored by a data subset</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LO9r7BKvc-1528yO4i4_Yw.png" /></figure><p>Above, I used base R plotting to graph petal width vs. petal length. The graph on the left is the most basic graph you can create in R: a scatter plot with an x and y variable.</p><p>The graph on the right communicates more information, subsetting the data by species using color. It also looks a little nicer, with axis labels, a title, color, and a legend. Color is applied based on the iris species using ifelse(). It only takes a couple of seconds longer to write code for this level of detail, and adds information and clarity.</p><p>You can recreate both of these graphs in R using this code:</p><pre>##par lets us set global parameters for our graphs.<br>par(mfrow = c(1,2), mar = c(5,5,4,1))</pre><pre>##Simple plot (left)<br>plot (iris$Petal.Length,iris$Petal.Width)</pre><pre>##Plot showing species subsets (right)<br>plot(iris$Petal.Length, iris$Petal.Width, <br>     xlab = &quot;Petal Length&quot;,<br>     ylab = &quot;Petal Width&quot;,<br>     main = &quot;Petal Width vs Petal Length&quot;,<br>     pch = 20,<br>     col=ifelse(iris$Species == &quot;setosa&quot;,&quot;coral1&quot;, <br>                ifelse(iris$Species == &quot;virginica&quot;,&quot;cyan4&quot;, <br>                       ifelse(iris$Species ==  &quot;versicolor&quot;,<br>                              &quot;darkgoldenrod2&quot;, &quot;grey&quot;))))<br>##legend<br>legend(&quot;bottomright&quot;, c(&quot;setosa&quot;,&quot;virginica&quot;, &quot;versicolor&quot;),<br>       col = c(&quot;coral1&quot;,&quot;cyan4&quot;, &quot;darkgoldenrod2&quot;), pch=20)</pre><p>The code for the species subsets can be divided into three sections:</p><ol><li>Parameters</li><li>Plot attributes</li><li>The legend</li></ol><h4>1. Parameters</h4><p>The parameter section fixes the settings for all your plots. Here we haven’t added many arguments. We have <strong>mfrow</strong> which is specifying that we have one row and two columns of plots — that is, two plots side by side. The <strong>mar</strong> attribute is a vector of our margin widths, with the first value indicating the margin below the plot (5), the second indicating the margin to the left of the plot(5), the third, the top of the plot(4), and the fourth to the left (1).</p><pre>par(mfrow = c(1,2), mar = c(5,5,4,1))</pre><h4>The Plot</h4><p>The second section is the meat of the plot. You can see that by just adding five arguments to our plot() function we have improved the look and usefulness of our graph. These arguments are:</p><ul><li>xlab: specifies the x-axis label of the plot</li><li>ylab: specifies the y-axis label</li><li>main: titles your graph</li><li>pch: specifies the symbology of your graph</li><li>col: specifies the colors for your graph.</li></ul><pre>##Plot with some customization<br>plot(iris$Petal.Length, iris$Petal.Width, <br>     xlab = &quot;Petal Length&quot;,<br>     ylab = &quot;Petal Width&quot;,<br>     main = &quot;Petal Width vs. Petal Length&quot;,<br>     pch = 20,<br>     col=ifelse(iris$Species == &quot;setosa&quot;,&quot;coral1&quot;, <br>                ifelse(iris$Species == &quot;virginica&quot;,&quot;cyan4&quot;, <br>                       ifelse(iris$Species ==  &quot;versicolor&quot;,<br>                              &quot;darkgoldenrod2&quot;, &quot;grey&quot;))))</pre><p>The argument that will make the biggest difference to the look of your graph is <strong>col</strong>. When you’re starting out, I recommend memorizing the names of three to four colors that look good together from the cheat sheet at the end of this article.</p><h4>The Legend</h4><pre>legend(&quot;bottomright&quot;, c(&quot;setosa&quot;,&quot;virginica&quot;, &quot;versicolor&quot;),<br>       col = c(&quot;coral1&quot;,&quot;cyan4&quot;, &quot;darkgoldenrod2&quot;), pch= c(20))</pre><p>The legend function allows users to define its location, the strings that appear as labels, and the symbols that appear next to each. Creating legends like this is a double-edged sword: the fact that it is not automatic gives you a huge amount of control over how your legend looks, but it is also easy to mislabel your symbols, so <em>ojo</em>.</p><h3>Font and color customizations</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MQZMu1nZLFA1x3TG1O1ozQ.png" /></figure><p>This level of customization could be necessary if you are creating graphics for general circulation or for an organization that has strict branding guidelines. The code looks a lot longer because I included a second graph of Sepal Length to show the application of the global parameters, but the code essentially has the same three sections: the parameters, the plot, and the legend. You can see that I didn’t make any major changes with respect to the plots, I just added attributes to customize the colors, fonts, and font sizes of my graph.</p><p>One important change between these graphs and the ones in the first section is in the par() function at the beginning. Adding attributes to specify the font, font size, and color here creates ‘global’ settings for your plot, allowing all your following graphs to shed that crunchy 1980’s R look. The attributes I’ve added are:</p><ul><li><strong>font</strong>: font in the par() expression changes the font for items outside of the plot function. In this case, it is applying to the legend but it will also apply to any margin text you may have.</li><li><strong>font.axis</strong>: the font of the axis value labels.</li><li><strong>fg</strong>: the color of the foreground, meaning text and graph outlines.</li><li><strong>col.axis</strong>: the color of the axis ticks and text.</li><li><strong>cex.axis</strong>: the size of the axis ticks and text, relative to the default value of 1.</li></ul><p>I also added a few similar attributes to the plot section of the code:</p><ul><li><strong>font.lab</strong>: specifies the font of your labels</li><li><strong>col.lab</strong>: specifies the color of your labels</li><li><strong>font.main</strong>: specifies the font of your main title</li><li><strong>col.main</strong>: specifies the color of your main title</li></ul><p>These attributes are specified exactly how their parent attributes (col and font) are specified. Easy, right?</p><p>I didn’t make any changes to the legend; the par() function did that for me.</p><pre>##global settings<br>par(mfrow = c(1,2), mar = c(5,5,4,1),font = 7,font.axis = 7, <br>    fg = &quot;azure4&quot;,  col.axis = &quot;azure4&quot;, cex.axis = .75)</pre><pre>## First plot<br>   plot(iris$Petal.Length, iris$Petal.Width, <br>       xlab = &quot;Petal Length&quot;, <br>       ylab = &quot;Petal Width&quot;, <br>       font.lab = 7,<br>       col.lab = &quot;azure4&quot;,<br>       main = &quot;Petal Width vs Petal Length&quot;,<br>       font.main = 7,<br>       col.main = &quot;black&quot;,<br>       pch = 20,<br>       col=ifelse(iris$Species == &quot;setosa&quot;,&quot;coral1&quot;, <br>                ifelse(iris$Species == &quot;virginica&quot;,&quot;cyan4&quot;, <br>                       ifelse(iris$Species ==  &quot;versicolor&quot;,<br>                              &quot;darkgoldenrod2&quot;, &quot;grey&quot;))))<br>  ##legend<br>  legend(&quot;bottomright&quot;, c(&quot;setosa&quot;,&quot;virginica&quot;, &quot;versicolor&quot;),<br>       col = c(&quot;coral1&quot;,&quot;cyan4&quot;, &quot;darkgoldenrod2&quot;), pch=20)</pre><pre>##Second plot<br>   plot(iris$Sepal.Length, iris$Sepal.Width, <br>     xlab = &quot;Sepal Length&quot;,<br>     ylab = &quot;Sepal Width&quot;,<br>     font.lab = 7,<br>     col.lab = &quot;azure4&quot;,<br>     main = &quot;Sepal Width vs Sepal Length&quot;,<br>     font.main=7,<br>     col.main = &quot;black&quot;,<br>     pch = 17,<br>     col=ifelse(iris$Species == &quot;setosa&quot;,&quot;coral1&quot;, <br>                ifelse(iris$Species == &quot;virginica&quot;,&quot;cyan4&quot;, <br>                       ifelse(iris$Species ==  &quot;versicolor&quot;,<br>                              &quot;darkgoldenrod2&quot;, &quot;grey&quot;))))<br>  ##legend<br>  legend(&quot;bottomright&quot;, c(&quot;setosa&quot;,&quot;virginica&quot;, &quot;versicolor&quot;),<br>       col = c(&quot;coral1&quot;,&quot;cyan4&quot;, &quot;darkgoldenrod2&quot;), pch=17)</pre><h3>Backgrounds</h3><p>Backgrounds for your charts are tricky using base plotting in R. The par() function has a background attribute, <strong>bg</strong>, but it colors the whole area of your chart the background color. For example:</p><pre>par(mfrow = c(1,1), mar = c(5,5,4,1),bg = &quot;grey&quot;) <br>plot(iris$Petal.Length, iris$Petal.Width)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*rPYAac1DEzVf0WrGDqoYEw.png" /></figure><p>Not what we want.</p><p>In base R there is no easy way of just coloring in the background of your plot. You can use the <strong>rect</strong> function to draw a rectangle that aligns with your axis, or you can use <strong>abline</strong>. The <strong>abline </strong>function is very versatile, and using it to create a background for our graph forces us to create our plot a little differently.</p><p>We’ll build off of the work in the previous sections, adding a colored background with gridlines to our plot of petal width vs. petal length.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iDGB3Umv-jEhNaUIBqDvNQ.png" /><figcaption>Graph of petal width vs petal length by species with a background created using abline</figcaption></figure><pre>##global parameters<br>par(mfrow = c(1,1), mar = c(5,5,4,1),font = 7,font.axis = 7,<br>    fg = &quot;azure4&quot;,  col.axis = &quot;azure4&quot;, cex.axis = .75) </pre><pre>##Create the empty plot<br>plot(NULL, ylim=c(0,2.5),xlim=c(0,7), <br>     xlab = &quot;Petal Length&quot;, <br>     ylab = &quot;Petal Width&quot;, <br>     font.lab = 7,<br>     main = &quot;Petal Width vs. Petal Length&quot;,<br>     font.main = 7,<br>     col.main = &quot;black&quot;,)</pre><pre>##Add the background color<br>abline(v = 0:7, col = &quot;aliceblue&quot;, lwd = 200)<br>abline(v = 0:7, col = &quot;white&quot;)<br>abline(h=0:2.5, col = &quot;white&quot;)</pre><pre>##Add the data points<br>points(iris$Petal.Length, iris$Petal.Width, <br>       pch = 20,<br>       cex = 1.5,<br>       col=ifelse(iris$Species == &quot;setosa&quot;,&quot;coral1&quot;, <br>                  ifelse(iris$Species == &quot;virginica&quot;,&quot;cyan4&quot;, <br>                         ifelse(iris$Species ==  &quot;versicolor&quot;,<br>                                &quot;darkgoldenrod2&quot;, &quot;grey&quot;))))<br>##legend<br>legend(&quot;bottomright&quot;, c(&quot;setosa&quot;,&quot;virginica&quot;, &quot;versicolor&quot;),<br>       col = c(&quot;coral1&quot;,&quot;cyan4&quot;, &quot;darkgoldenrod2&quot;), pch=20)</pre><p>If you look at the code for this graph, you can see that it approaches plot creation a bit differently. First, it sets up an empty plot and then draws on layers of information, starting with the background color, then the data points, then the legend. The background color is created using thick ab-lines for the solid color and thin white ones for the grid:</p><pre>##Add the background color<br>abline(v = 0:7, col = &quot;aliceblue&quot;, lwd = 200)<br>abline(v = 0:7, col = &quot;white&quot;)<br>abline(h=0:2.5, col = &quot;white&quot;)</pre><p>You can see that we’ve moved our point attributes, (the dataset, pch, and col) to the <strong>points()</strong> function, but we haven’t changed them. I did add the attribute <strong>cex</strong> to increase the size of the points.</p><h3>Cheatsheets</h3><p>Graphs are one of the most effective ways of communicating analysis results to any audience. Additions as simple as proper labels, subsetting data by colors or symbols, and font adjustments add both information and clarity, yet consistently we see graphics coming out of R that look like they were created thirty years ago. After putting time into cleaning, summarizing, and analyzing your data, it makes sense to spend a minute on your plots.</p><p>Below are some nice cheat sheets to help you with your customizations.</p><h4>Attributes of plot()</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kcQnqL8Lplu9tVmvnn2ehQ.png" /><figcaption>Some attributes of the plot function and their associated values (<a href="https://www.r-graph-gallery.com/6-graph-parameters-reminder.html">source code</a>). For col you can see that there are only 7 distinct color values that have a number designation, then they start repeating.</figcaption></figure><h4>Colors</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KhpcBMjzR7bEw1im6sATeg.png" /><figcaption>cheatsheet of 42 R color names (<a href="https://www.r-graph-gallery.com/42-colors-names.html">source code</a>)</figcaption></figure><h4>Fonts</h4><p>There are many ways to approach fonts in R, but here is a basic cheat sheet for the numerical values associated with different fonts using font = x.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*oTAEIE8MRGHix2ubXnXCbg.png" /></figure><p>All the code used for this article can be found <a href="https://github.com/jesselibra/R-Graphics">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb365da06b22" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/base-plotting-in-r-eb365da06b22">Base Plotting in R</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[6 Mexican Class Stereotypes, overexplained]]></title>
            <link>https://medium.com/swap-language/6-mexican-class-stereotypes-overexplained-f26f4a64f388?source=rss-778bce57e843------2</link>
            <guid isPermaLink="false">https://medium.com/p/f26f4a64f388</guid>
            <category><![CDATA[class-politics]]></category>
            <category><![CDATA[stereotypes]]></category>
            <category><![CDATA[language-learning]]></category>
            <category><![CDATA[spanish]]></category>
            <category><![CDATA[mexico]]></category>
            <dc:creator><![CDATA[Jesse Libra]]></dc:creator>
            <pubDate>Tue, 19 May 2020 16:44:26 GMT</pubDate>
            <atom:updated>2021-03-02T07:24:04.198Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*t59zSdH_vfgZwEFL" /><figcaption>Photo by <a href="https://unsplash.com/@luisvidal_18?utm_source=medium&amp;utm_medium=referral">Luis Vidal</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Scrolling through my husband’s Twitter the other day, I was lost. We’ve lived in Mexico City for three years now, and my Spanish is pretty good but I found myself staring at tweets as if they were in Cyrillic. <em>What the hell is a chairo</em>?</p><p>As much as we may dislike stereotypes, understanding them can tell us a lot about the society we live in. Mexico, in particular, has a rich bouquet of colorful, often derogatory terms that pigeonhole people based on their appearance, class, and political beliefs. <em>Fifí, godínez, chairo, mirrey — </em>these terms give us outsiders a valuable window into issues of race and inequality in Mexico and help us understand Mexican humor, which tends to satirize these stereotypes heavily.</p><p>This article overexplains six of the most common class stereotypes in Mexico to help you recognize them when you see them, understand where they come from, and learn<strong> </strong>the vocabulary that goes along with each.</p><h4>1. Fresa</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*M2YZOC3SijPXNO_J" /><figcaption>Photo by <a href="https://unsplash.com/@sandranoor320?utm_source=medium&amp;utm_medium=referral">Sandra Wattad</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Let’s get this one out of the way. <em>Fresa</em>, literally <em>strawberry</em>, is a term you are probably familiar with if you have spent any time learning about Mexican culture. There are many derivatives or subtypes within the <em>fresa </em>stereotype and in its most general sense it is used an umbrella term for anyone who is wealthy. Because of the strong correlation between wealth and race in Mexico, <em>fresas </em>are generally of European or middle-eastern descent.</p><p><strong>As a stereotype, </strong><em>fresas</em><strong> </strong>are young and rich. They tend to pepper their speech with English words, signaling their <em>metropolitanismo — </em>a clear indication that they come from the upper class. <em>Fresas</em> listen to commercial, unoffensive music (think Luis Miguel or Shakira), they holiday in Vail, and use filler words like <em>o sea. </em>On the negative end of the stereotype, they are seen as being insular, self-involved, picky, <em>mamones</em>, and perhaps a bit prudish. In English, they might be called basic.</p><p><em>Fresas</em> speak with a distinct accent which is commonly referred to as having <em>la papa en la boca</em>, or talking as if you have a potato in your mouth. An exaggerated example of this accent is <a href="https://www.youtube.com/watch?v=V7ok51AXyus">Paulina de la Mora</a> from <em>Casa de las Flores</em>, as portrayed by Cecilia Suárez. Slang created by adding the -i suffix is common — words like <em>holi </em>for <em>hola</em>, <em>qué ondi</em> for<em> qué onda</em>, and the horrific <em>por fis </em>for <em>por favor.</em></p><p><strong><em>Fresa</em> can also be used as an adjective </strong>to describe anyone who is overly prudish, regardless of class. For example, if you say you don’t want to have sex before marriage, your friend may tease you by saying, “<em>¡Qué fresa eres!”</em></p><h4>2. Mirrey</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*YGe9jwOPI4hOS5eYnaUwAg.jpeg" /><figcaption>Virreyes is one of the wealthiest streets in Mexico City. A vandal has converted the “V” into an “M”.</figcaption></figure><p>The term <em>mirrey — </em>literally “my king” — originated as a common <a href="http://ricardoraphael.com/mexicos-young-elite-flaunt-money-and-power-on-social-media-roiling-countrys-working-class/">greeting</a> in the wealthy Mexican Lebanese community, but emerged in the late 2000s as a distinct stereotype: rich boys, typified by conspicuous consumption, entitled attitudes, alcoholism, and an acute lack of awareness of their privilege relative to the rest of society. They dress similarly, in white shirts unbuttoned halfway down, expensive loafers, and pricy accessories like sunglasses and watches. They can be thought of as the extreme of the <em>fresa</em> world.</p><p>Again, <em>mirreyes</em> use a specific lexicon, with suffixes like -<em>uki</em> (<em>peduki, lobuki</em>), -<em>irri</em> (<em>Acapulquirri</em>) and words like <em>paps</em>, <em>papá</em>, <em>lord</em>, and the word <em>mirrey</em> itself. This speaking style is easily parodied in memes and on-screen personalities, making the <em>mirrey</em> a popular archetype of Mexican comedy writers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*VLCiq9Scm-gkNqd8Itf2Lg.jpeg" /><figcaption>Luis Miguel, rey de los mirreyes (photo: Carlos Somonte)</figcaption></figure><p>Whether the term <em>mirrey</em> is offensive depends on whether or not you are a <em>mirrey</em>. Many nominal <em>mirreyes</em> take pride in the term. They are not, however, a well-loved archetype by the general population, and are commonly the butts of jokes in movies and pop-culture.</p><p>Common examples of <em>mirreyes </em>are:</p><ul><li>Javier Noble from <em>Nosotros los Nobles</em></li><li>Luis Miguel, singer</li><li>Enrique Peña Nieto, former president of Mexico</li><li>Fransico from <em>Amar Te Duele</em></li><li>Chava Iglesias from <em>Club de Cuervos</em></li></ul><p>If you still don’t feel like you have a clear mental image or want to go deeper into the <em>mirrey</em> as a meme, I highly recommend <a href="https://mirrreybook.tumblr.com/">Mirreybook</a> on Tumblr.</p><h4>3. Godínez</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sxj682O2Gdu-q2Bu" /><figcaption>Photo by <a href="https://unsplash.com/@charlesdeluvio?utm_source=medium&amp;utm_medium=referral">Charles Deluvio</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><em>Godínez </em>is a semi-pejorative term for an office worker. You know the type — they work 9 to 6, have a cubicle, bring a packed lunch, and have an office ID on one of those retractable clips (a <em>yo-yo</em>).</p><p>The origin of the term is not clear. One theory is that it sprung from a character from the television series “El Chavo del Ocho”, Godínez, whose comedic relief comes from avoiding work as much as possible. If you relate to the characters in “The Office”, you are likely a <em>godínez</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/0*7ib8FtWES8c9Brph.jpg" /><figcaption>A godínez meme (<a href="https://archivo.eluniversal.com.mx/de-ultima/2014/lo-que-callamos-los-empleados-87812.html">El Universal</a>) featuring Godínez from el Chavo del Ocho.</figcaption></figure><p>There are a number of class indicators that are built into the godínez stereotype. According to this <a href="https://www.youtube.com/watch?v=WR3BHfP8pmM">Excélsior broadcast</a>, godínez often live in neighborhoods distinct from where they work and have Androids as opposed to iPhones. The term implies a distinct lack of agency — a <em>godínez</em> doesn’t manage their own time.</p><p>The stereotype is of an aspirational middle-class but term g<em>odínez </em>can be applied to anyone who works a restrictive office job and understands the trials of shared refrigerators, open office layouts, and switching out the toner in the office printer. If you enjoy <em>juebebes</em> ( jueves + bebes) you might be a g<em>odínez</em>.</p><p>Notable examples of g<em>odínez</em> in pop culture are:</p><ul><li>Genaro from <em>Mirreyes vs Godínez</em></li><li>Betty Pinzón from <em>Yo Soy Betty, la Fea</em></li><li>Hugo Sánchez from <em>Club de Cuervos</em></li></ul><h4>4. Naco</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*q8om3aquTE7KJPUk" /><figcaption>Photo by <a href="https://unsplash.com/@markusspiske?utm_source=medium&amp;utm_medium=referral">Markus Spiske</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Naco is a complicated and controversial word that can be applied to a wide range of stereotypes, so it isn’t as clear-cut as many of the others on this list. At its most basic <em>naco</em> means trashy and at its worst it’s an ethnic slur. It is best avoided if you aren’t a native speaker, and probably even if you are.</p><p>Today, you will hear it in situations where someone is being rude; for example, if someone doesn’t pick up after their dog, you might hear a passerby tell them “<em>no seas naco</em>” — “<em>don’t be trashy</em>”. But you also might hear it in less benign contexts, so it is important to understand its origins and use.</p><blockquote><a href="https://www.scribd.com/doc/18649748/Diccionario-de-Mexicanismos"><strong>naco</strong></a><strong> </strong>(Posiblemente de <em>totonaco.), </em>naca. adj., y m. y f. 1. Indio, indígena. || 2. De bajo nivel cultural, ignorante.</blockquote><p>The origins of the word <em>naco</em> are uncertain, but it is commonly thought to come from <em>Totonac</em>, the name of an indigenous group located in the states of Veracruz, Hidalgo, and Puebla. Up until the 1970s it was commonly used as a derogatory term for indigenous people in Mexico, after which it became more broadly applied — you can see why this is a word you might want to avoid.</p><p>There are three use-categories that <em>naco</em> can fall into:</p><ol><li><strong>Casual use: </strong>In this context,<strong> </strong>it describes someone who is violating the social contract in some way. For example, you may be called <em>naco </em>for littering in a park or driving down the shoulder of the highway to get past traffic. It can also be used to call someone tacky, for example, a <em>mirrey</em> talking loudly about their Rolex. In this context, it refers to someone acting badly and is largely agnostic of class.</li><li><strong>Classist use: </strong>In this context, people use <em>naco</em> to describe behavior they view as bad-mannered, usually associated with a socioeconomic class below theirs. This usage is more mean-spirited than the use described above. For example, it might be used by upper-class Mexicans to condemn the <em>nouveau riche</em> for patterns of conspicuous consumption.</li><li><strong>Racist use: </strong>In this context, it is a racist slur for indigenous people. This might have been the original meaning of the word, which is why some find the word inherently offensive.</li></ol><p>While <em>naco </em>is very commonly used by Mexicans from all backgrounds to describe behavior that they find in bad taste, it is easy to make the argument that even casual use is classist, in the same way that calling someone <em>trashy</em> could be considered classist in English. Even so, it is often used on television and other media in the casual sense and is not a curse word.</p><h4>5. Chairo</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*10OgHfFChTZjca7e" /><figcaption>Photo by <a href="https://unsplash.com/@mattseymour?utm_source=medium&amp;utm_medium=referral">Matt Seymour</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><em>Chairo </em>is a pejorative term for someone who is outspokenly leftist, socialist, or communist. The word implies a blind adherence to ideology and often a lack of commitment to real action. There is no easy U.S. equivalent of this archetype; the closest might be a college student in a Che Guevara t-shirt who can’t be bothered to vote, but that doesn’t really get at it, so let’s try to go beyond simplistic U.S. analogs.</p><p>The term was first widely <a href="https://www.milenio.com/opinion/rogelio-villarreal/columna-rogelio-villareal/los-chairos">used in the 1960s</a> when it was associated with adolescents who were distracted or self-absorbed (coming from <em>chaqueta</em>, Spanish for jacket and also slang for jacking-off — the implication being that the act of masturbating makes you self-absorbed and distracted). The term evolved ideological connotations with the phrase <em>chaqueta mental</em>, which can be translated as a self-delusion or believing something in spite of evidence to the contrary. Critics of <em>chairos</em> accuse them of doing <em>maromas</em>,<em> </em>flips, to arrive at their political conclusions — the conceptual equivalent of <a href="https://media.giphy.com/media/JqJVxgBqSMS3Kg1Ohp/source.mov">mental gymnastics</a>.</p><p>Since the election of Mexico’s current left-wing President, Andres Manuel López Obrador, <em>chairo </em>as a term has vastly increased in <a href="https://trends.google.com/trends/explore?date=all&amp;geo=MX&amp;q=Chairo">popularity</a> and has become ubiquitous on Twitter as a disparaging term for the president’s base, who largely tend to be less wealthy and darker-skinned. As a result, the word <em>chairo</em> can have racial and class connotations.</p><p>The recent rise in popularity of the word <em>chairo</em> has resulted in the coining of the term <em>derechairo</em>, a clever portmanteau of <em>derecha</em> and <em>chairo,</em> meaning a fanatical right-winger.</p><h4>6. Fifí</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZgUX5G8cU6JN_wOD.jpg" /><figcaption>“Neither fifís nor chairos, we are all Mexicans. No more hate speech.” (photo: Sergio Vázquez, <a href="https://www.elsoldemexico.com.mx/mexico/sociedad/ni-fifis-ni-chairos-todos-mexicanos-inicia-marcha-contra-amlo-marcha-del-silencio-3575427.html">El Sol de México</a>)</figcaption></figure><p><em>Fifís</em> are the opposite of <em>chairos</em>, at least in the political arena. To be <em>fifí </em>is to be pro-status quo, of the privileged class, the beneficiary of government corruption for the last 60 years, and, most importantly, in opposition to President López’s Morena party. There is a lot of overlap with <em>fresa</em>, although unlike <em>fresa</em>, no one self-identifies as <em>fifí.</em></p><p>This term has been popularized recently by President López, who uses it regularly to describe his opposition and has accused the press itself of <a href="https://www.youtube.com/watch?v=b87EqMLNGzw">being <em>fifí</em></a><em>. </em>Sound familiar?</p><p>Until recently, the term was considered antiquated — it’s first documented use being from the <a href="https://www.mexicodesconocido.com.mx/origen-palabra-fifi.html">1880s</a>. While its origins aren’t certain, it has been suggested that it comes from the word <a href="https://dle.rae.es/fifiriche"><em>fifiriche</em></a>, which means someone concerned with their appearance. By 1911, the beginning of the liberal and very short-lived presidency of Francisco Madero, the term had evolved to mean rich conservatives who enjoyed — almost exclusively — the spoils of the prosperous <a href="https://en.wikipedia.org/wiki/Porfiriato">Porfirio Díaz regime</a>. These <em>fifís</em>, including Generals Victoriano Huerta and Félix Díaz, lead a coup against Madero killing him and his vice president. To many, the liberal President Madero is a symbol of what Mexico could have been, and by likening his detractors to the factions that murdered Madero, President López is able to draw parallels between Madero and his own administration.</p><h4>Trends over time</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zsnS7jTMC9mHZr8AtalThQ.png" /><figcaption>Google interest over time data for some of the terms in this article from Jan 2004 to May 2020.</figcaption></figure><p>The application of these stereotypes to a given individual won’t tell you much about that person — they are not mutually exclusive terms. For example, you can have <em>fresa godínez</em>, <em>naco mirreyes</em>, and <em>chairo fifís</em>. The prominence of these terms over time, however, is interesting to look at.</p><p>Looking at Google searches from 2004 to 2020, we can see a few broad trends related to these words. The prominence of the term <em>naco</em> in Google searches has decreased significantly over the last 20 years, possibly because some segments of society have become more sensitive to its racist connotations. On the other hand, terms relevant to the current political climate like <em>chairo</em> and <em>fifí</em> hit their peak in the months surrounding President López’s election and see renewed interest whenever a political controversy is stirred. <em>Fresa</em> has remained popular over the last 20 years, likely due to its primary meaning: strawberry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9iIi9VGw91MCXzGM1xfz2w.png" /><figcaption>Google interest over time data for some of the terms in this article with relevant events from Jan 2017 to May 2020</figcaption></figure><p>Looking more closely at the timeline we can see a number of peaks related to specific events, especially for the political terms. In September 2018, for example, the president first called the press <em>fifí </em>over criticism of his decision to cancel the already-underway airport in Texcoco. Throughout November 2018 the word was in the news frequently due to protests over the president’s decision, which the president termed <em>fifí </em>protests. Spikes can also be explained by pop culture, like the spikes for <em>mirrey</em> and <em>godínez </em>associated with the marketing and release of the film <em>Mirreyes vs. Godínez </em>in late January 2019.</p><p>Understanding these stereotypes and their origins gives you the gift of context, a precious commodity when trying to understand a foreign culture. I’ve lived in Mexico for almost 3 years, and I still miss a lot of what goes on around me because of a lack of cultural context (ex: why does everyone at this New Year’s party keep talking about <a href="https://www.cityexpress.com/en/travel-blog/a-guide-to-popular-mexican-traditions-on-new-years-eve">grapes</a>?). The worst thing about missing cultural context is that you often don&#39;t realize you are missing anything.</p><p>So now that you have a little more of that valuable commodity, go use it! Follow some Mexican Twitter accounts or watch a Mexican Netflix series. You’ll be surprised by how often these words come up and how much richer your understanding is now that you have some context.</p><h4>Vocabulary from this article:</h4><ul><li><strong><em>Acapulquirri </em></strong>: Acapulco, a favorite vacation spot among <em>mirreyes</em>.</li><li><strong><em>chairo</em></strong> : individual on the far left (politically)</li><li><strong><em>derecha</em> </strong>: right, in the directional sense</li><li><strong><em>derechairo</em></strong> : individual on the far right (politically)</li><li><strong><em>fifí </em></strong>: rich, privileged, conservative person, status quo</li><li><strong><em>fresa</em></strong> : rich, privileged, young, prudish person</li><li><strong><em>godínez</em></strong> : an office worker</li><li><strong><em>hacerse/echarse una chaqueta</em></strong> : to masturbate</li><li><strong><em>holi</em></strong><em> </em>:<em> </em>hello, <em>fresa</em> shortening of <em>hola</em></li><li><strong><em>juebebes</em></strong> : thirsty Thursday</li><li><strong><em>lobuki</em></strong> : a term for women analogous to “chick” in English.</li><li><strong><em>mamón, mamones (pl.)</em></strong>: stuck up</li><li><strong><em>maromas</em></strong> : flips, as in acrobatics</li><li><strong><em>mirrey</em> </strong>: rich, privileged, spoiled, male</li><li><strong><em>naco</em> </strong>: trashy</li><li><strong><em>o sea</em></strong> : that is, as a filler word</li><li><strong><em>paps /</em> <em>papá /</em> <em>lord </em></strong>: similar to “bro”, words <em>mirreyes </em>use to refer to each other.</li><li><strong><em>peduki </em></strong>: short for <em>peda</em>,<em> </em>a term for get-together or party. The term pedo/a can mean many things and deserves an article of its own.</li><li><strong><em>por fis</em></strong> : please,<em> fresa</em> shortening of <em>por favor</em></li><li><strong><em>qué ondi </em></strong>: what’s up, <em>fresa</em> shortening of <em>qué onda</em></li><li><strong><em>un yoyo</em></strong> : a work id, specifically one on a clip with a retractable string</li><li><strong><em>la papa en la boca</em> </strong>: literally, a potato in the mouth, it is a term describing the <em>fresa</em> accent.</li></ul><p><em>If you are looking for language partners to improve your foreign language skills you can find one for free at </em><a href="https://www.swaplanguage.com/Front"><em>swaplanguage.com</em></a><em>. Additionally, you can join our weekly free live Spanish and Danish lessons. Grammar, vocabulary and culture, taught by native speakers.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f26f4a64f388" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swap-language/6-mexican-class-stereotypes-overexplained-f26f4a64f388">6 Mexican Class Stereotypes, overexplained</a> was originally published in <a href="https://medium.com/swap-language">Swap Language</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>