Publications by Yuxia Wu

Quiz 2

27.02.2020

In this exercise you will learn to plot data using the ggplot2 package. To answer the questions below, use Chapter 4.3 Categorical vs. Quantitative Data Visualization with R. # Load packages library(tidyquant) library(tidyverse) # Import stock prices stock_prices <- tq_get(c("WMT", "TGT", "AMZN"), get = "stock.prices", from = "2020-01-01") # ...

1776 sym R (3163 sym/9 pcs) 3 img

Bivariate Graphs

20.02.2020

In this exercise you will learn to plot data using the ggplot2 package. To answer the questions below, use Chapter 4.3 Categorical vs. Quantitative Data Visualization with R. # Load packages library(tidyquant) library(tidyverse) # Import stock prices stock_prices <- tq_get(c("AAPL", "MSFT"), get = "stock.prices", from = "2020-01-01") stock_pri...

1155 sym R (2694 sym/10 pcs) 6 img

Introduction to ggplot2

20.02.2020

# load data data(CPS85 , package = "mosaicData") ggplot The summary of the text goes here… # specify dataset and mapping library(ggplot2) ggplot(data = CPS85, mapping = aes(x = exper, y = wage)) geoms Geoms specify the type of plot you want. # add points ggplot(data = CPS85, mapping = aes(x = exper, y = wage)) + geom_point() ...

155 sym R (3762 sym/15 pcs) 10 img

Clean data

18.02.2020

In this exercise you will learn to clean data using the dplyr package. To this end, you will follow through the codes in one of our e-texts, Data Visualization with R. The given example code below is from Chapter 1.2 Cleaning data. # Load package library(tidyverse) # Import data data(starwars) starwars Q1 select Keep the variables name, eye_col...

986 sym R (2663 sym/16 pcs)

Quiz 1-b

11.02.2020

Use the given code below to answer the questions. Q1 Import Netflix stock prices, instead of Apple. Hint: Insert a new code chunk below and type in the code, using the tq_get() function above. Replace the ticker symbol. Find ticker symbols from Yahoo Finance. ## Load package library(tidyverse) # for cleaning, plotting, etc library(tidyquant) # f...

2249 sym R (1880 sym/5 pcs) 1 img

Mock Quiz 1

30.01.2020

Use the given code below to answer the questions. Q1 Get Walmart stock prices, instead of Apple. Hint: Insert a new code chunk below and type in the code, using the tq_get() function above. Replace the ticker symbol for Walmart. You may find the ticker symbol for Microsoft from Yahoo Finance. ## Load package library(tidyverse) # for cleaning, pl...

1680 sym R (1035 sym/3 pcs) 1 img

My First RMarkdown with Code

30.01.2020

Use the given code below to answer the questions. Q1 Get Amazon stock prices, instead of Apple. Hint: Insert a new code chunk below and type in the code, using the tq_get() function above. Replace the ticker symbol for Microsoft. You may find the ticker symbol for Microsoft from Yahoo Finance. ## Load package library(tidyverse) # for cleaning, p...

1311 sym R (1089 sym/4 pcs) 1 img

My First Publication

23.01.2020

Q1 What is R? R is a language and environment for statistical computing and graphics. Q2 What is RStudio? It’s an open source and professional software for data. Q3 What is R packages? R packages likes app packages, the fundamental unit of shareable code is the package. Hint: Type your answer in bold. Note: For help with RMarkdown syntax, go ...

404 sym