@@ -140,7 +140,7 @@ surveys_plot + p9.geom_point()
140140> > ~~~
141141> > {: .language-python}
142142> >
143- > > 
143+ > > 
144144> {: .solution}
145145{: .challenge}
146146
@@ -178,7 +178,7 @@ instance, we can add transparency (alpha) to avoid overplotting:
178178~~~
179179{: .language-python}
180180
181- 
181+ 
182182
183183We can also add colors for all the points
184184
@@ -191,7 +191,7 @@ We can also add colors for all the points
191191~~~
192192{: .language-python}
193193
194- 
194+ 
195195
196196Or to color each species in the plot differently, map the `species_id` column
197197to the color aesthetic:
@@ -238,7 +238,7 @@ could support the interpretation of the lower numbers:
238238~~~
239239{: .language-python}
240240
241- 
241+ 
242242
243243- Changing the theme (`theme_*`) or some specific theming (`theme`) elements.
244244Usually plots with white background look more readable when printed. We can
@@ -256,7 +256,7 @@ set the background to white using the function `theme_bw()`.
256256~~~
257257{: .language-python}
258258
259- 
259+ 
260260
261261> ## Challenge - Bar plot adaptations
262262> Adapt the bar plot of the previous exercise by mapping the `sex` variable to
@@ -295,7 +295,7 @@ group, a boxplot can be used:
295295~~~
296296{: .language-python}
297297
298- 
298+ 
299299
300300By adding points of the individual observations to the boxplot, we can have a
301301better idea of the number of measurements and of their distribution:
@@ -310,7 +310,7 @@ better idea of the number of measurements and of their distribution:
310310~~~
311311{: .language-python}
312312
313- 
313+ 
314314
315315> ## Challenge - distributions
316316>
@@ -344,7 +344,7 @@ better idea of the number of measurements and of their distribution:
344344> > )
345345> > ~~~
346346> > {: .language-python}
347- > > 
347+ > > 
348348> {: .solution}
349349{: .challenge}
350350
@@ -397,7 +397,7 @@ modifying the aesthetic function and map the species_id to the color:
397397~~~
398398{: .language-python}
399399
400- 
400+ 
401401
402402## Faceting
403403
@@ -529,7 +529,7 @@ following example of a bar plot with the counts per year.
529529~~~
530530{: .language-python}
531531
532- 
532+ 
533533
534534Notice that we use the `year` here as a categorical variable by using the
535535`factor` functionality. However, by doing so, we have the individual year
@@ -546,7 +546,7 @@ rotate the text of the x-axis labels:
546546~~~
547547{: .language-python}
548548
549- 
549+ 
550550
551551When you like a specific set of theme-customizations you created, you can save
552552them as an object to easily apply them to other plots you may create:
@@ -564,7 +564,7 @@ my_custom_theme = p9.theme(axis_text_x = p9.element_text(color="grey", size=10,
564564~~~
565565{: .language-python}
566566
567- 
567+ 
568568
569569> ## Challenge - customization
570570> Please take another five minutes to either improve one of the plots
0 commit comments