Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
eb5eeca
Update name & description
CathrynChen8 Sep 28, 2021
2a26aca
edited post
CathrynChen8 Sep 28, 2021
511d4ba
edited
CathrynChen8 Sep 28, 2021
dc01161
test 2
CathrynChen8 Sep 29, 2021
37b035c
delete test 2
CathrynChen8 Sep 29, 2021
25e9e09
add email
CathrynChen8 Oct 5, 2021
a54dbfb
Blog post 0
CathrynChen8 Oct 5, 2021
47cdeed
update blog0
CathrynChen8 Oct 5, 2021
5f87a47
update title
CathrynChen8 Oct 5, 2021
bfa840f
update picture
CathrynChen8 Oct 6, 2021
52e0968
update picture
CathrynChen8 Oct 6, 2021
5babdb4
updated_blog=0
CathrynChen8 Oct 6, 2021
e23e531
updated
CathrynChen8 Oct 6, 2021
daf4c9f
update
CathrynChen8 Oct 6, 2021
6e45d8b
resubmit update
CathrynChen8 Oct 8, 2021
3506f09
update interpretation again
CathrynChen8 Oct 8, 2021
c76b7a7
post 1-1
CathrynChen8 Oct 14, 2021
2bd001d
updated plotly
CathrynChen8 Oct 14, 2021
10223fe
undo update picture
CathrynChen8 Oct 14, 2021
d680d0c
delete
CathrynChen8 Oct 14, 2021
9562352
plotly presentation
CathrynChen8 Oct 14, 2021
0086584
attempt
CathrynChen8 Oct 14, 2021
59f9669
update pictures
CathrynChen8 Oct 14, 2021
e2d9a2e
undo the picture upload
CathrynChen8 Oct 14, 2021
bdeaad2
picture upload
CathrynChen8 Oct 14, 2021
d73b176
update
CathrynChen8 Oct 14, 2021
3b6e852
updated
CathrynChen8 Oct 15, 2021
7f570ec
Update 2021-10-13-blog-post-1.md
CathrynChen8 Oct 15, 2021
d99830b
Merge pull request #2 from CathrynChen8/PIC16B-master
CathrynChen8 Oct 15, 2021
033c00f
Create 2021-10-14-blog-post-1.md
CathrynChen8 Oct 15, 2021
32aa03c
delete
CathrynChen8 Oct 15, 2021
b96160e
updated
CathrynChen8 Oct 15, 2021
a9a9e26
rename picture
CathrynChen8 Oct 15, 2021
fbb8391
changed
CathrynChen8 Oct 15, 2021
e9f80a8
Update _config.yml
CathrynChen8 Oct 15, 2021
307a5e8
figures
CathrynChen8 Oct 15, 2021
cb69bc4
Create 2021-10-14-blog-post-1.md
CathrynChen8 Oct 15, 2021
da9280f
1
CathrynChen8 Oct 15, 2021
20a94ad
1
CathrynChen8 Oct 15, 2021
3436ab9
post 0
CathrynChen8 Oct 15, 2021
7fe267c
post 1
CathrynChen8 Oct 15, 2021
4f5886a
Update 2021-10-14-blog-post-1.md
CathrynChen8 Oct 15, 2021
f4d4d9b
Create fig3.html
CathrynChen8 Oct 15, 2021
2e7e64b
1
CathrynChen8 Oct 15, 2021
a5de7c8
1
CathrynChen8 Oct 15, 2021
0fcd985
1
CathrynChen8 Oct 15, 2021
e1bfb0b
Update 2.png
CathrynChen8 Oct 15, 2021
7498e19
upload
CathrynChen8 Oct 15, 2021
f5c586c
include pictures
CathrynChen8 Oct 15, 2021
abf0700
Merge branch 'master' into master
CathrynChen8 Oct 15, 2021
a583e29
Merge branch 'master' into PIC16B-master
CathrynChen8 Oct 15, 2021
c1a1765
bp2 post
CathrynChen8 Oct 23, 2021
879ae6b
Merge branch 'master' into PIC16B-master
CathrynChen8 Oct 23, 2021
6fdfe61
delete
CathrynChen8 Oct 23, 2021
1cc4858
added
CathrynChen8 Oct 23, 2021
6b30935
Set theme jekyll-theme-slate
CathrynChen8 Oct 23, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
#

# Name of your site (displayed in the header)
name: My Epic PIC16B Journey

# Short bio or description (displayed in the header)
description: Monster Hunter 605
name: My Awesome PIC16B Adventure

# Short bio or description (displayed in the header)
Expand All @@ -18,10 +22,10 @@ avatar: https://raw.githubusercontent.com/PIC16B/PIC16B.github.io/master/images/
# Includes an icon in the footer for each username you enter
footer-links:
dribbble:
email:
email: [email protected]
facebook:
flickr:
github: PIC16B/pic16b.github.io # replace with your repo
github: CathrynChen8/CathrynChen8.github.io # replace with your repo
instagram:
linkedin:
pinterest:
Expand Down Expand Up @@ -84,3 +88,5 @@ exclude:
- LICENSE
- README.md
- CNAME

theme: jekyll-theme-slate
64 changes: 64 additions & 0 deletions _includes/fig3.html

Large diffs are not rendered by default.

64 changes: 64 additions & 0 deletions _includes/fig_inter.html

Large diffs are not rendered by default.

64 changes: 64 additions & 0 deletions _includes/fig_station.html

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions _posts/2021-03-16-hello-jekyll.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ title: Activity - Getting Started with Jekyll

In this post, we'll get set up with [Jekyll](https://jekyllrb.com/). Jekyll is a *static site converter*, which you can use to turn plaintext documents into attractive webpages.

# My typying

## Pre-Work: Install Jekyll

You should have already installed Jekyll when completing the activity in [this post]({{ site.baseurl }}/software)
Expand Down
11 changes: 11 additions & 0 deletions _posts/2021-09-27-test-post.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
---
layout: post

title: Test Post
---

This is a test

some more tex to write
```python
def my_awesome_function(x):
return 3*x
title: My Exciting Test Post
---

Expand All @@ -23,4 +33,5 @@ def my_awesome_function(x):
return 3*x

my_awesome_function(3)

```
95 changes: 95 additions & 0 deletions _posts/2021-10-04-blog-post-0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
---
layout: post
title: Blog Post 0
---

## Graph on Penguin Data: "I want to know more about Penguins"


This is a quick introduction about how to draw a simple graph on data in python.

### Preparation
Reading the data

Let's start by reading the data into our python!
(Here is the code provided)

Firstly, we import the pandas library, and
```python
import pandas as pd
```

Then we get the url to approach the data, and read it into python as Penguins:
```python
url = "https://raw.githubusercontent.com/PhilChodrow/PIC16B/master/datasets/palmer_penguins.csv"
penguins = pd.read_csv(url)
```

### Let's get an easy Graph

Start with import library again, while this time we need the matplotlib library.
To make it easier to be used, we name the pyplot as plt.


```python
from matplotlib import pyplot as plt
```

We then look at the data we have, and see which variable we want to investigate about.

```python
penguins.head()
```
![1.png](/images/1.png)

From the penguins, we can get many information, including species, region, island, date egg, Culmen length, etc.

We then can simply pick two variables that we are interested in, for example, species and Culmen Length.

What is Culmen length then:
![culman.jpeg](/images/culman.jpeg)

("https://twitter.com/allison_horst/status/1270046411002753025", picture from twitter)

The Culmen length is simply like the length of the bird's bill.

Then, regarding the relationship we want to investigate, by general biological knowledge, it seems like different species of penguins have different appearance, and thus different Culmen length.

We can first utilize the plot function in matplotlib to draw the relationship diagram.

Here, the x variable is the species, and the y variable is Culmen length.

```python
plt.plot(penguins["Species"], penguins["Culmen Length (mm)"])
plt.show()
```
![Unknown-1.png](/images/Unknown-1.png)

We can add some more information on it.
We add the following information to the graph:
1. x-axis name: Species
2. y-axis name: Culmen Length(mm)
3. Title name : Culmen length(mm) for different Species of Penguins

```python
plt.xlabel('Species') #x-label name
plt.ylabel('Culmen Length(mm)') #y-label name
plt.title('Culmen length(mm) for different Species of Penguins') #title name
plt.show()
```
![Unknown.png](/images/Unknown.png)

It looks ok now! The only question is that the x-axis is overlapping. We will rotate it to make it clearer to read.

```python
plt.xticks(rotation=5) #rotate the x-axis ticks
plt.show()
```
![graph_0.png](/images/graph_0.png)

What we have in the graph is three vertical lines for three penguins type (Adelie penguin, Chinstrap penguin, and Gentoo penguin), the vertical lines indicate numerical interval for penguin culmen length based on the given data for each species of penguin seperately.

As noted from the graph, it also has horizontal lines connected between each vertical line of different types of penguins. The lines connect the mean of culmen length for different kinds of penguin. Adelie penguins have mean of culmen length for about 42, while Chinstrap penguins have mean at about 48, Gentoo penguins have mean for about 45. It seems that Chinstrap penguins have highest Culmen length, and Adelie penguins have shortest one.


Through easy plt.plot function in python, we can get the graph about culmen length difference with respect to the specied of penguins, and futher compare the culmen length.
Loading