diff --git a/cleansing.qmd b/cleansing.qmd index fdf68d3..3df0845 100644 --- a/cleansing.qmd +++ b/cleansing.qmd @@ -8,33 +8,3 @@ subtitle: "my data science portfolio" ## Title 2 Header [MarkDown Basics](https://quarto.org/docs/authoring/markdown-basics.html#links-images) - -# %% [markdown] -# --- -# title: Palmer Penguins -# author: Norah Jones -# date: 3/12/23 -# --- - -# %% -#| echo: false -import pandas as pd -df = pd.read_csv("palmer-penguins.csv") - -# %% [markdown] -""" -## Exploring the data - -See @fig-bill-sizes for an exploration of bill sizes by species. -""" - -# %% -#| label: fig-bill-sizes -#| fig-cap: Bill Sizes by Species - -import matplotlib.pyplot as plt -import seaborn as sns - -g = sns.FacetGrid(df, hue="species", height=3, aspect=3.5/1.5) -g.map(plt.scatter, "bill_length_mm", "bill_depth_mm").add_legend() - diff --git a/competition.qmd b/competition.qmd index 58ea138..3df0845 100644 --- a/competition.qmd +++ b/competition.qmd @@ -8,34 +8,3 @@ subtitle: "my data science portfolio" ## Title 2 Header [MarkDown Basics](https://quarto.org/docs/authoring/markdown-basics.html#links-images) - -#' --- -#' title: Palmer Penguins -#' author: Norah Jones -#' date: 3/12/23 -#' format: html -#' --- - -library(palmerpenguins) - -#' ## Exploring the data -#' See @fig-bill-sizes for an exploration of bill sizes by species. - -#| label: fig-bill-sizes -#| fig-cap: Bill Sizes by Species -#| warning: false -library(ggplot2) -ggplot(data = penguins, - aes(x = bill_length_mm, - y = bill_depth_mm, - group = species)) + - geom_point(aes(color = species, - shape = species), - size = 3, - alpha = 0.8) + - labs(title = "Penguin bill dimensions", - subtitle = "Bill length and depth for Adelie, Chinstrap and Gentoo Penguins at Palmer Station LTER", - x = "Bill length (mm)", - y = "Bill depth (mm)", - color = "Penguin species", - shape = "Penguin species") \ No newline at end of file