diff --git a/02-data.Rmd b/02-data.Rmd index c5bde96..40d3a40 100644 --- a/02-data.Rmd +++ b/02-data.Rmd @@ -1,6 +1,12 @@ # Data sources -We use [coinmarketcap](https://coinmarketcap.com) to verified top 5 cryptocurrencies by market cap, and then pulled each cryptocurrency dataset from yahoo finance, including 1 year long trading information (2021 May - 2022 May). +## COntribution + +Tianyu is responsible to determine the cryptocurencies we are focus on. Juntian downloads corresponding cryptocurrencies' datasets and determines the scale of the data. + +## Data Collection + +We use [coinmarketcap](https://coinmarketcap.com) api to verified top 5 cryptocurrencies by market cap, and then pulled each cryptocurrency dataset from yahoo finance, including 1 year long trading information (2021 May - 2022 May). ```{r} library(tidyverse) @@ -8,11 +14,6 @@ library(ggplot2) library(coinmarketcapr) ``` -```{r} -coinmarketcapr::setup('6a34456f-8a3c-46d5-b07f-6b84e364929c') -plot_top_currencies(currency = "USD", k = 5, bar_color = "grey") -``` - ```{r} BTC <- read.csv("data/BTC-USD.csv") BNB <- read.csv("data/BNB-USD.csv") @@ -21,14 +22,38 @@ USDC <- read.csv("data/USDC-USD.csv") USDT <- read.csv("data/USDT-USD.csv") ``` +We then explore multiple financial sources and yahoo finance is the most tangible and flexible website to download dataset we desired. It not only offers detailed information about the crypto we are interested in, but also provides options to download dataset with self-define time frame. + +## Dataset Information + +We downloaded 5 datasets and each corresponding to one of the major cryptocurrencies we observed above. Each dataset include 366 rows and 7 columns. + +### Format + +The format of each dataset: + +| Date | Open | High | Low | Close | Adj.Close | Volume | +| :----: | :----: | :----: | :----: | :----: | :----: | :----: | +| record | + +### Column Details + +* Date: date of the crypto record +* Open: open price +* High: highest price +* Close: close price +* Adj.Close: close price after adjustment +* Volume: the number of shares traded + +(all price are in USD) + +## Issue + ```{r} -df.close<-data.frame(cbind(BTC[,1],BTC[,6],BNB[,6],ETH[,6],USDC[,6],USDT[,6])) -colnames(df.close)<-c("Date","BTC","BNB","ETH","USDC","USDT") -head(df.close) -``` -```{r} -df.close1<- gather(df.close[,2:6], cryptocurrency, price) -df.close1$price<-as.numeric(df.close1$price) -head(df.close1) +coinmarketcapr::setup('6a34456f-8a3c-46d5-b07f-6b84e364929c') +plot_top_currencies(currency = "USD", k = 5, bar_color = "grey") ``` +As the histogram above shown, the market cap of Bitcoin is way bigger than any cryptocurrencies. This is a challenging problem because it would affect our comparison between cryptos. + + diff --git a/04-missing.Rmd b/04-missing.Rmd index 211ba98..66adb2b 100644 --- a/04-missing.Rmd +++ b/04-missing.Rmd @@ -1 +1,12 @@ # Missing values + +```{r} +library(redav) +``` + +```{r} +plot_missing(df.close) +``` + +Observed that there is no missing value. + diff --git a/_bookdown_files/finalproj_files/figure-html/unnamed-chunk-11-1.png b/_bookdown_files/finalproj_files/figure-html/unnamed-chunk-11-1.png new file mode 100644 index 0000000..2fb937b Binary files /dev/null and b/_bookdown_files/finalproj_files/figure-html/unnamed-chunk-11-1.png differ diff --git a/_bookdown_files/finalproj_files/figure-html/unnamed-chunk-12-1.png b/_bookdown_files/finalproj_files/figure-html/unnamed-chunk-12-1.png new file mode 100644 index 0000000..7a97a50 Binary files /dev/null and b/_bookdown_files/finalproj_files/figure-html/unnamed-chunk-12-1.png differ diff --git a/_bookdown_files/finalproj_files/figure-html/unnamed-chunk-13-1.png b/_bookdown_files/finalproj_files/figure-html/unnamed-chunk-13-1.png new file mode 100644 index 0000000..22842c7 Binary files /dev/null and b/_bookdown_files/finalproj_files/figure-html/unnamed-chunk-13-1.png differ diff --git a/_bookdown_files/finalproj_files/figure-html/unnamed-chunk-14-1.png b/_bookdown_files/finalproj_files/figure-html/unnamed-chunk-14-1.png new file mode 100644 index 0000000..7a97a50 Binary files /dev/null and b/_bookdown_files/finalproj_files/figure-html/unnamed-chunk-14-1.png differ diff --git a/_bookdown_files/finalproj_files/figure-html/unnamed-chunk-4-1.png b/_bookdown_files/finalproj_files/figure-html/unnamed-chunk-4-1.png index 9ccc9a4..223356c 100644 Binary files a/_bookdown_files/finalproj_files/figure-html/unnamed-chunk-4-1.png and b/_bookdown_files/finalproj_files/figure-html/unnamed-chunk-4-1.png differ diff --git a/_bookdown_files/finalproj_files/figure-html/unnamed-chunk-5-1.png b/_bookdown_files/finalproj_files/figure-html/unnamed-chunk-5-1.png new file mode 100644 index 0000000..c82cc97 Binary files /dev/null and b/_bookdown_files/finalproj_files/figure-html/unnamed-chunk-5-1.png differ diff --git a/docs/404.html b/docs/404.html index 05e7482..c52d7a3 100644 --- a/docs/404.html +++ b/docs/404.html @@ -23,7 +23,7 @@ - + @@ -73,7 +73,17 @@
  • 1 Introduction
  • -
  • 2 Data sources
  • +
  • 2 Data sources +
  • 3 Data transformation
  • 4 Missing values
  • 5 Results
  • diff --git a/docs/conclusion.html b/docs/conclusion.html index 567542a..e0b28e7 100644 --- a/docs/conclusion.html +++ b/docs/conclusion.html @@ -23,7 +23,7 @@ - + @@ -73,7 +73,17 @@
  • 1 Introduction
  • -
  • 2 Data sources
  • +
  • 2 Data sources +
  • 3 Data transformation
  • 4 Missing values
  • 5 Results
  • diff --git a/docs/data-sources.html b/docs/data-sources.html index 07913d3..70469d2 100644 --- a/docs/data-sources.html +++ b/docs/data-sources.html @@ -23,7 +23,7 @@ - + @@ -73,7 +73,17 @@
  • 1 Introduction
  • -
  • 2 Data sources
  • +
  • 2 Data sources +
  • 3 Data transformation
  • 4 Missing values
  • 5 Results
  • @@ -100,9 +110,65 @@

    Chapter 2 Data sources

    -

    We use coinmarketcap to verified top 5 cryptocurrencies by market cap, and then pulled each cryptocurrency dataset from yahoo finance, including 1 year long trading information (2021 May - 2022 May).

    -

    +
    +

    2.1 COntribution

    +

    Tianyu is responsible to determine the cryptocurencies we are focus on. Juntian downloads corresponding cryptocurrencies’ datasets and determines the scale of the data.

    +
    +
    +

    2.2 Data Collection

    +

    We use coinmarketcap api to verified top 5 cryptocurrencies by market cap, and then pulled each cryptocurrency dataset from yahoo finance, including 1 year long trading information (2021 May - 2022 May).

    +

    We then explore multiple financial sources and yahoo finance is the most tangible and flexible website to download dataset we desired. It not only offers detailed information about the crypto we are interested in, but also provides options to download dataset with self-define time frame.

    +
    +
    +

    2.3 Dataset Information

    +

    We downloaded 5 datasets and each corresponding to one of the major cryptocurrencies we observed above. Each dataset include 366 rows and 7 columns.

    +
    +

    2.3.1 Format

    +

    The format of each dataset:

    + + + + + + + + + + + + + + + + + + + + + + + +
    DateOpenHighLowCloseAdj.CloseVolume
    record
    +
    +
    +

    2.3.2 Column Details

    +
      +
    • Date: date of the crypto record
    • +
    • Open: open price
    • +
    • High: highest price
    • +
    • Close: close price
    • +
    • Adj.Close: close price after adjustment
    • +
    • Volume: the number of shares traded
    • +
    +

    (all price are in USD)

    +
    +
    +
    +

    2.4 Issue

    +

    +

    As the histogram above shown, the market cap of Bitcoin is way bigger than any cryptocurrencies. This is a challenging problem because it would affect our comparison between cryptos.

    +
    diff --git a/docs/data-transformation.html b/docs/data-transformation.html index 5ba9a49..b9aa762 100644 --- a/docs/data-transformation.html +++ b/docs/data-transformation.html @@ -23,7 +23,7 @@ - + @@ -73,7 +73,17 @@
  • 1 Introduction
  • -
  • 2 Data sources
  • +
  • 2 Data sources +
  • 3 Data transformation
  • 4 Missing values
  • 5 Results
  • diff --git a/docs/finalproj_files/figure-html/unnamed-chunk-11-1.png b/docs/finalproj_files/figure-html/unnamed-chunk-11-1.png new file mode 100644 index 0000000..2fb937b Binary files /dev/null and b/docs/finalproj_files/figure-html/unnamed-chunk-11-1.png differ diff --git a/docs/finalproj_files/figure-html/unnamed-chunk-12-1.png b/docs/finalproj_files/figure-html/unnamed-chunk-12-1.png new file mode 100644 index 0000000..7a97a50 Binary files /dev/null and b/docs/finalproj_files/figure-html/unnamed-chunk-12-1.png differ diff --git a/docs/finalproj_files/figure-html/unnamed-chunk-13-1.png b/docs/finalproj_files/figure-html/unnamed-chunk-13-1.png new file mode 100644 index 0000000..22842c7 Binary files /dev/null and b/docs/finalproj_files/figure-html/unnamed-chunk-13-1.png differ diff --git a/docs/finalproj_files/figure-html/unnamed-chunk-14-1.png b/docs/finalproj_files/figure-html/unnamed-chunk-14-1.png new file mode 100644 index 0000000..7a97a50 Binary files /dev/null and b/docs/finalproj_files/figure-html/unnamed-chunk-14-1.png differ diff --git a/docs/finalproj_files/figure-html/unnamed-chunk-4-1.png b/docs/finalproj_files/figure-html/unnamed-chunk-4-1.png index 9ccc9a4..223356c 100644 Binary files a/docs/finalproj_files/figure-html/unnamed-chunk-4-1.png and b/docs/finalproj_files/figure-html/unnamed-chunk-4-1.png differ diff --git a/docs/finalproj_files/figure-html/unnamed-chunk-5-1.png b/docs/finalproj_files/figure-html/unnamed-chunk-5-1.png new file mode 100644 index 0000000..c82cc97 Binary files /dev/null and b/docs/finalproj_files/figure-html/unnamed-chunk-5-1.png differ diff --git a/docs/index.html b/docs/index.html index dd8de9d..f0cdbb4 100644 --- a/docs/index.html +++ b/docs/index.html @@ -23,7 +23,7 @@ - + @@ -73,7 +73,17 @@
  • 1 Introduction
  • -
  • 2 Data sources
  • +
  • 2 Data sources +
  • 3 Data transformation
  • 4 Missing values
  • 5 Results
  • @@ -101,14 +111,14 @@

    Chapter 1 Introduction

    Cryptocurrency market is trending and we are interested in comparing and contrasting different types of cryptocurrencies, providing insights in the field. After exploring multiple websites that provide crypto market data, we developed a few questions that are hard to answer directly through any single sources:

    1.The correlation between major cryptocurrencies, are they moved upward or downward together?

    -

    2.how “hot” is a cryptocurrency, by trading frequency, volume, etc

    -

    3.how big the crypto market is, i.e, market cap of major cryptocurrencies, compare with each other and figure out the relationships between volatility and the market cap.

    +

    2.how to visualize “hotness” of a cryptocurrency?

    +

    3.market cap of major cryptocurrencies, compare with each other and figure out the relationships between volatility and the market cap.

    diff --git a/docs/interactive-component.html b/docs/interactive-component.html index 306c989..1a570c2 100644 --- a/docs/interactive-component.html +++ b/docs/interactive-component.html @@ -23,7 +23,7 @@ - + @@ -73,7 +73,17 @@
  • 1 Introduction
  • -
  • 2 Data sources
  • +
  • 2 Data sources +
  • 3 Data transformation
  • 4 Missing values
  • 5 Results
  • diff --git a/docs/missing-values.html b/docs/missing-values.html index 5f6bec0..2eff61e 100644 --- a/docs/missing-values.html +++ b/docs/missing-values.html @@ -23,7 +23,7 @@ - + @@ -73,7 +73,17 @@
  • 1 Introduction
  • -
  • 2 Data sources
  • +
  • 2 Data sources +
  • 3 Data transformation
  • 4 Missing values
  • 5 Results
  • @@ -100,6 +110,8 @@

    Chapter 4 Missing values

    +

    +

    Observed that there is no missing value.

    diff --git a/docs/reference-keys.txt b/docs/reference-keys.txt index 3b9e28b..812e5cd 100644 --- a/docs/reference-keys.txt +++ b/docs/reference-keys.txt @@ -1,5 +1,11 @@ introduction data-sources +contribution +data-collection +dataset-information +format +column-details +issue data-transformation missing-values results diff --git a/docs/results.html b/docs/results.html index 4ff2816..f126a80 100644 --- a/docs/results.html +++ b/docs/results.html @@ -23,7 +23,7 @@ - + @@ -73,7 +73,17 @@
  • 1 Introduction
  • -
  • 2 Data sources
  • +
  • 2 Data sources +
  • 3 Data transformation
  • 4 Missing values
  • 5 Results
  • @@ -100,6 +110,8 @@

    Chapter 5 Results

    +

    +

    diff --git a/docs/search_index.json b/docs/search_index.json index 2ef91ff..0752054 100644 --- a/docs/search_index.json +++ b/docs/search_index.json @@ -1 +1 @@ -[["index.html", "Crypto Graphics Chapter 1 Introduction", " Crypto Graphics Tianyu Yao, Juntian Zhang 2022-05-01 Chapter 1 Introduction Cryptocurrency market is trending and we are interested in comparing and contrasting different types of cryptocurrencies, providing insights in the field. After exploring multiple websites that provide crypto market data, we developed a few questions that are hard to answer directly through any single sources: 1.The correlation between major cryptocurrencies, are they moved upward or downward together? 2.how “hot” is a cryptocurrency, by trading frequency, volume, etc 3.how big the crypto market is, i.e, market cap of major cryptocurrencies, compare with each other and figure out the relationships between volatility and the market cap. "],["data-sources.html", "Chapter 2 Data sources", " Chapter 2 Data sources We use coinmarketcap to verified top 5 cryptocurrencies by market cap, and then pulled each cryptocurrency dataset from yahoo finance, including 1 year long trading information (2021 May - 2022 May). "],["data-transformation.html", "Chapter 3 Data transformation", " Chapter 3 Data transformation ## Date BTC BNB ETH USDC USDT ## 1 2021-04-29 53555.109375 599.706543 2756.876953 1.000144 0.999966 ## 2 2021-04-30 57750.175781 624.080566 2773.207031 0.999824 1.000009 ## 3 2021-05-01 57828.050781 619.347229 2945.892822 1.000154 1.000111 ## 4 2021-05-02 56631.078125 622.101013 2952.056152 0.999949 1.000132 ## 5 2021-05-03 57200.292969 675.684082 3431.086182 1.000104 1.000165 ## 6 2021-05-04 53333.539063 611.200317 3253.629395 1.000195 0.999951 ## cryptocurrency price ## 1 BTC 53555.11 ## 2 BTC 57750.18 ## 3 BTC 57828.05 ## 4 BTC 56631.08 ## 5 BTC 57200.29 ## 6 BTC 53333.54 "],["missing-values.html", "Chapter 4 Missing values", " Chapter 4 Missing values "],["results.html", "Chapter 5 Results", " Chapter 5 Results "],["interactive-component.html", "Chapter 6 Interactive component", " Chapter 6 Interactive component "],["conclusion.html", "Chapter 7 Conclusion", " Chapter 7 Conclusion "],["404.html", "Page not found", " Page not found The page you requested cannot be found (perhaps it was moved or renamed). You may want to try searching to find the page's new location, or use the table of contents to find the page you are looking for. "]] +[["index.html", "Crypto Graphics Chapter 1 Introduction", " Crypto Graphics Tianyu Yao, Juntian Zhang 2022-05-03 Chapter 1 Introduction Cryptocurrency market is trending and we are interested in comparing and contrasting different types of cryptocurrencies, providing insights in the field. After exploring multiple websites that provide crypto market data, we developed a few questions that are hard to answer directly through any single sources: 1.The correlation between major cryptocurrencies, are they moved upward or downward together? 2.how to visualize “hotness” of a cryptocurrency? 3.market cap of major cryptocurrencies, compare with each other and figure out the relationships between volatility and the market cap. "],["data-sources.html", "Chapter 2 Data sources 2.1 COntribution 2.2 Data Collection 2.3 Dataset Information 2.4 Issue", " Chapter 2 Data sources 2.1 COntribution Tianyu is responsible to determine the cryptocurencies we are focus on. Juntian downloads corresponding cryptocurrencies’ datasets and determines the scale of the data. 2.2 Data Collection We use coinmarketcap api to verified top 5 cryptocurrencies by market cap, and then pulled each cryptocurrency dataset from yahoo finance, including 1 year long trading information (2021 May - 2022 May). We then explore multiple financial sources and yahoo finance is the most tangible and flexible website to download dataset we desired. It not only offers detailed information about the crypto we are interested in, but also provides options to download dataset with self-define time frame. 2.3 Dataset Information We downloaded 5 datasets and each corresponding to one of the major cryptocurrencies we observed above. Each dataset include 366 rows and 7 columns. 2.3.1 Format The format of each dataset: Date Open High Low Close Adj.Close Volume record 2.3.2 Column Details Date: date of the crypto record Open: open price High: highest price Close: close price Adj.Close: close price after adjustment Volume: the number of shares traded (all price are in USD) 2.4 Issue As the histogram above shown, the market cap of Bitcoin is way bigger than any cryptocurrencies. This is a challenging problem because it would affect our comparison between cryptos. "],["data-transformation.html", "Chapter 3 Data transformation", " Chapter 3 Data transformation ## Date BTC BNB ETH USDC USDT ## 1 2021-04-29 53555.109375 599.706543 2756.876953 1.000144 0.999966 ## 2 2021-04-30 57750.175781 624.080566 2773.207031 0.999824 1.000009 ## 3 2021-05-01 57828.050781 619.347229 2945.892822 1.000154 1.000111 ## 4 2021-05-02 56631.078125 622.101013 2952.056152 0.999949 1.000132 ## 5 2021-05-03 57200.292969 675.684082 3431.086182 1.000104 1.000165 ## 6 2021-05-04 53333.539063 611.200317 3253.629395 1.000195 0.999951 ## cryptocurrency price ## 1 BTC 53555.11 ## 2 BTC 57750.18 ## 3 BTC 57828.05 ## 4 BTC 56631.08 ## 5 BTC 57200.29 ## 6 BTC 53333.54 "],["missing-values.html", "Chapter 4 Missing values", " Chapter 4 Missing values Observed that there is no missing value. "],["results.html", "Chapter 5 Results", " Chapter 5 Results "],["interactive-component.html", "Chapter 6 Interactive component", " Chapter 6 Interactive component "],["conclusion.html", "Chapter 7 Conclusion", " Chapter 7 Conclusion "],["404.html", "Page not found", " Page not found The page you requested cannot be found (perhaps it was moved or renamed). You may want to try searching to find the page's new location, or use the table of contents to find the page you are looking for. "]] diff --git a/index.Rmd b/index.Rmd index 21ab8f8..65dfc64 100644 --- a/index.Rmd +++ b/index.Rmd @@ -11,6 +11,8 @@ Cryptocurrency market is trending and we are interested in comparing and contras 1.The correlation between major cryptocurrencies, are they moved upward or downward together? -2.how “hot” is a cryptocurrency, by trading frequency, volume, etc +2.how to visualize “hotness” of a cryptocurrency? + +3.market cap of major cryptocurrencies, compare with each other and figure out the relationships between volatility and the market cap. + -3.how big the crypto market is, i.e, market cap of major cryptocurrencies, compare with each other and figure out the relationships between volatility and the market cap.