Ask Question
14 August, 19:24

1. Using R, construct time series (line) plots for both stock prices and return series. R functions ts. plot or plot can create the plot. Describe the patterns and compare the plots.

+3
Answers (1)
  1. 14 August, 19:33
    0
    The code in R for the time series is given as below.

    Step-by-step explanation:

    As the complete question is not presented thus a sample code for the variables is given as below

    # Libraries

    library (ggplot2)

    library (dplyr)

    library (plotly)

    library (hrbrthemes)

    # Load dataset

    filepath=" Your dataset path here in csv format"

    data < - read. table ("filepath", header=T)

    data$date < - as. Date (data$date)

    # plot

    data %>%

    ggplot (aes (x=date, y1=value1, x=date, y2=value2)) +

    geom_line (color="#69b3a2") +

    ylim (0,22000) +

    theme_ipsum ()
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “1. Using R, construct time series (line) plots for both stock prices and return series. R functions ts. plot or plot can create the plot. ...” in 📗 Mathematics if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers