Questions tagged [ggtimeseries]

The ggTimeSeries R package offers different time series plots based on ggplot2. It includes linecharts, calendar heatmaps, horizon plots, steamgraphs, waterfall graphs, mosaik plots.

Repositories:

9 questions
3
votes
5 answers

Plot of week/day values in R

I have a list of values in a matrix where the dimensions are week by day (so each value represents a specific day in a week). The weeks are in increasing order and the days are defined by their name (e.g. "Friday"). I'd like to turn this into a…
user592419
  • 5,103
  • 9
  • 42
  • 67
3
votes
3 answers

How to filter rows based on time (hh:mm:ss) using dplyr in tidyversse in R?

This is my data library(tidyverse) a<-tribble( ~"Date", ~"Time", ~"Name", ~"Value", "2020-06-03", "00:15:00", "DR.RADHAKRISHNAN SALAI", 0.166, "2020-06-03", "00:30:00", "DR.RADHAKRISHNAN SALAI", 0.867, "2020-06-03", …
Betel
  • 151
  • 7
2
votes
1 answer

ggTimeSeries Manual Continuous Colour

My df: prod # A tibble: 695 × 3 REPORT_DATE UNIT PROD 1 2015-03-28 DEP11 2.043962 2 2015-03-29 DEP11 2.788490 3 2015-03-30 DEP11 2.795274 4 2015-03-31 DEP11 3.100589 5 2015-04-01 DEP11 2.882843 6 …
Shery
  • 1,808
  • 5
  • 27
  • 51
2
votes
0 answers

write a function for generating a ggplot2 in R

I am currently working on automated reports in R. please see the code below for automated function. the first plot can work well but the second plot didn't show anything. Could someone help me out this? many thanks! multi_plot =…
Chris Chang
  • 61
  • 1
  • 7
1
vote
1 answer

What is the name of this plot?

I would like to redo this plot, which was published in one of the newspaper about Covid 19 death toll. I am not sure what kind of graph is this, I am assuming this is percent stacked area plot.
Saurabh
  • 121
  • 12
0
votes
1 answer

Split time series into several daily plots in R using ggplot

I have a large time series of temperature observations that I am attempting to visualize using ggplot in R. The temperature observations were collected at 20-minute intervals over a period of months resulting in 9048 data points. I can visualize the…
0
votes
2 answers

Adding a geom_area plot on top of an existing geom_plot

I have a dataset with two time series variables showing the number of COVID cases in two states and am trying to stack this data on top of each other in the same graphic. I have the first layer just fine: ggplot(MI_FL_Data, aes(x=realdate,…
0
votes
0 answers

I keep getting a "subscript out of bounds" error when trying to install ggTimeSeries package in R - how do I install the package?

I'm trying to make a calendar heatmap, and for that I'm using the ggplot_calendar_heatmap function from ggTimeSeries. I have had repeated errors when trying to install this package and the data.frame package. Here is my code: >…
AkRFL
  • 19
  • 4
-1
votes
1 answer

Adding dates to x-axis in time series plot

I have the following code: library(ggplot2) library(fpp2) library(tidyverse) library(tidyr) library(lubridate) library(writexl) library(plyr) library(forecast) Sales171819 <- SalesNL[SalesNL$TransactionDate >= "2017-01-01" &…
Atal Atmar
  • 25
  • 5