Ask Question
Today, 06:07

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.

+5
Answers (1)
  1. Today, 07:14
    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 you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers