Skip to content

Commit

Permalink
cleaning up test code
Browse files Browse the repository at this point in the history
  • Loading branch information
chaz-clark committed Mar 6, 2024
1 parent e25b26e commit cab2c40
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 61 deletions.
30 changes: 0 additions & 30 deletions cleansing.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -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()

31 changes: 0 additions & 31 deletions competition.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit cab2c40

Please sign in to comment.