Publications by R on Chi's Impe[r]fect Blog

Testing Entry with R Rmarkdown File

18.05.2018

Hello! World! Just figuring out how the blog post works with this random set of coffee data! Espresso Drinks Visualized with ggplot2 Pie Chart Pie chart can be created with using polar coordinate. ## Pie Chart coffee_long %>% ggplot() + geom_bar(aes(x=sqrt(total.amount)/2, y = amount, fill=fct_rev(ingredient.f), width=sqrt(tot...

666 sym R (789 sym/2 pcs) 4 img

16 Personalities with Circlize

19.05.2018

16 Personalities While back, my husband introduced me to this fun online personalities test called 16 personalities. I’ve taken the test, and my personalities type came back as Mediator (Code: INFP – Role: Diplomat) There were difinitely some traits that sounded like me, and a lot of statement I can relate for sure. It’s definitely some fun...

1592 sym R (3583 sym/2 pcs) 2 img

Daylight in Vancouver (Canada) vs Tokyo (Japan)

19.05.2018

I currently live in British Columbia, Canada. So I live above 49th parallel line. One of things that’s pretty awesome living up north is the fact you get so much longer daylights in summer time! Currently it’s May, and I’m just in love with longer daylight we are getting day by day (well till June 21st)! Recently I came across R package cal...

1894 sym 6 img

Making Calendar with ggplot + Moon Phase Calendar for fun

25.05.2018

Making Calendar with ggplot2 I recently discovered font called Moon Phase. I also recently discovered R package, suncalc, and I can get Moon Illumination data by day, so I thought I’d use both to create a simple calendar using ggplot2. Prepping The Data To make calendar, I need to strip out weekday, month, day, week number within a month. So I...

1215 sym R (2959 sym/4 pcs) 6 img 1 tbl

Environmental Performance Index – Simple Scatter Plot

04.10.2018

While reading the news that Ireland becomes world’s first country to divest from fossil fuels, I just got curious how do we measure “green-ness” of country when we rank them in general, and I came across the Environmental Performance Index page with ranking table. Table contained 180 countries with some numerics values for Environment Perfo...

2531 sym R (3433 sym/5 pcs) 8 img 2 tbl

Visual Art with Pi using ggplot2 & circlize

12.10.2018

I stumbled across this beautiful art on Washington Post article, and I wanted to try making the similar art using “digits in pi” myself using R and things I’ve learned recently. Get First 100000 digits of Pi After bit of googling, I stumbled across this this site, so I decided to get first 100000 digits from below website. However, later I...

2765 sym R (4286 sym/9 pcs) 10 img

Random Walk of Pi – Another ggplot2 Experiment

13.10.2018

There are so many beautiful “π” arts everywhere, and I wanted to practice ggplot2 by mimicing those arts further more. Another pi art caught my eye is random walk of pi digits. Here’s one of examples in WIRED magazine. For random walk to work, I’ve assigned direction to “walk” depending on digits 0-9. I’ve prepared data frame as b...

910 sym R (2718 sym/4 pcs) 8 img 1 tbl

Cannibus Curve with ggplot2

16.10.2018

Starting today, recreational weed is legal in Canada. This news has some how lead me to find Cannibus Curve, a mathmatical equation to draw Cannibus….!!! So to celebrate? being 2nd country in the world (1st was Uruguay) to legalize the green stuff for fun, I decided I’ll try drawing cannibus curve with ggplot. Here’s the final results. Can...

1098 sym R (1748 sym/5 pcs) 12 img

Popular Halloween Candy on US State Grid Map

24.10.2018

Halloween is coming..! Halloween is just around the corner, I am still trying to decide which candies to purchase this year for trick-or-treaters. Initially I was looking for data sets maybe comparing American chocolate bars vs Canadian chocolate bars possibly with sugar contents or lists of ingredients. I am really curious why there are big diff...

3014 sym R (5692 sym/5 pcs) 6 img 1 tbl

Phyllotaxis Sprial and Prime Numbers – Experiment

27.10.2018

I recently tried out Data Camp’s project called “Phyllotaxis: Draw flowers using mathematics”. Now I’m hooked on drawing spirals using golden angle. Also the mathematical art on instructor’s blog, Fronkostin is just amazing! Separately on twitter, I’ve gotten message on art with prime number, and that got me thinking to experiment wit...

1481 sym R (2622 sym/9 pcs) 16 img