Questions tagged [timeserieschart]

A time series chart, also called a times series graph, is an illustration of data points at successive time intervals.

396 questions
4
votes
3 answers

RStudio Error in plot.new() : figure margins too large

Using R Studio when trying to plot an xts object using chartSeries() the following error pop's up: Error in plot.new() : figure margins too large However when plotting it directly in R there is no problem with the margins size. How can I correct the…
Daniel
  • 41
  • 1
  • 1
  • 3
4
votes
1 answer

create specific date range in ggplot2 ( scale_x_date)

Hi i have yearly data from 2010 to 2050. i am trying make line plot so that my x-axis start from 2010 and end in 2050 showing 5 years interval i e i want x-axis break as ( 2010, 2015, 2020,....,2045,2050). Unfortunately it starts from 2013 and end…
Cirrus
  • 638
  • 3
  • 13
  • 26
3
votes
0 answers

How can I create a datetime generator that can be used as an input for the graph

I want to plot a real time, time series data using plotly. But I need a datetime generator to be created first that will act as an input to the plot. I also want to limit the graph to show data for latest 30 mins records only. the below code is in…
shutrive
  • 31
  • 3
3
votes
1 answer

Grouping xarray daily data into monthly means

I am hoping to plot a graph representing monthly temperature from 1981-01-01 to 2016-12-31. I would like the months "Jan Feb Mar Apr May...Dec" on the x-axis and the temperature record as the y-axis as my plan is to compare monthly temperature…
3
votes
1 answer

how to create a high resolution timeseries plot in Julia

I have successfully created using timeseries.jl, with Version 1.5.3 (2020-11-09), in Juno, installed with JuliaPro, with the following code ATTEMPT 1: using IterableTables using DataFrames using CSV using Dates using TimeSeries using…
Z Awang
  • 51
  • 3
3
votes
1 answer

ggplot2 specify a secondary axis for both value and date/datetime

I am trying to produce a ggplot graph where I can compare two time periods without indexing the data. So, that I get one time-window running along the x-axis at the bottom and one along the x-axis at the top, kinda like the the example from the…
Eric Fail
  • 8,191
  • 8
  • 72
  • 128
3
votes
1 answer

How to make a graph plotting monthly data over many years in pandas

I have 11 years worth of hourly ozone concentration data. There are 11 csv files containing ozone concentrations at every hour of every day. I was able to read all of the files in and convert the index from date to datetime. For my graph: I…
obscuredbyclouds
  • 189
  • 1
  • 1
  • 15
3
votes
1 answer

How to plot non-consecutive time-series axis with QtCharts?

I need to plot a chart, whose axis X has data type of date-time. I'm trying to use QtCharts to do so, but I find that QtCharts::QDateTimeAxis can only process consecutive data(the X axis is proportional and consecutive). For example, given a…
Leon
  • 1,489
  • 1
  • 12
  • 31
3
votes
2 answers

Fill area under time series based on factor value

I am trying to fill the area under a time series line based on a factor value of 0 and 1. The area should only be filled if the value is equal to 1. I have managed to colour code the time series line based on the factor value with the following…
Ittai Barkai
  • 120
  • 1
  • 9
3
votes
2 answers

ggplot2: Add secondary x label (year below months)

My Problem is related to: Axis labels on two lines with nested x variables (year below months) However, my data looks a little different. library(dplyr) set.seed(122) df <- as_tibble(rlnorm(1260, meanlog = 0.06, sdlog = 0.20)) df$month <-…
Jj Blevins
  • 355
  • 1
  • 13
3
votes
1 answer

Enable Zoom on an ESNet react-timeseries-charts Chart

I'm currently playing with ESnet's react timeseries charting components, with the specific goal of allowing a user to zoom into a displayed chart, as in their currency example. According to their documentation and to the best of my understanding of…
Shastick
  • 1,218
  • 1
  • 12
  • 29
3
votes
1 answer

Time series plot with week, year and number of hits

In[1] df Out[0] week year number_of_cases 8 2010 583.0 9 2010 116.0 10 2010 358.0 11 2010 420.0 ... ... ... 52 2010 300.0 …
3
votes
1 answer

Plotting a Time Series in ggplot, with lines grouped by Year

I am trying to plot a time series with years each on different lines. Take this example: library(ggplot2) library(lubridate) library(dplyr) df = data.frame(dt = seq(as.Date("2015/01/01"), by = "day", length.out = 1000), num = c(sample(1:333),…
Matsutake
  • 87
  • 6
3
votes
2 answers

R ggplot2 autoplot() function. What's wrong?

I have a dataset "bc" with 2285 observations two variables: "Date" and "Price". 'data.frame': 2285 obs. of 2 variables: $ Date : Date, format: "2017-12-14" "2017-12-13" ... $ Price: num 16234 16250 16650 16470 14691 ... I tried to create a…
Manuel
  • 33
  • 1
  • 6
3
votes
1 answer

Detailed date in cursor pos on pyplot charts

Let's say there's a time series that I want to plot in matplotlib: dates = pd.date_range(start='2011-01-01', end='2012-01-01') s = pd.Series(np.random.rand(1, len(dates))[0], index=dates) The GUI backends in matplotlib have this nice feature that…
mac13k
  • 2,423
  • 23
  • 34
1 2
3
26 27