Change x axis labels

69 views
Skip to first unread message

Antonina Nesterenko

unread,
Jan 8, 2015, 6:33:49 AM1/8/15
to causal...@googlegroups.com
Hi!
I just want to change labeling of the x axis to the actual dates (some time before intervention, study period, period of intervention)

for this I create a special vector

dates <- seq(as.Date("oo/oo/oooo", format = "%d/%m/%Y"), by = "days", length = ooo),

but it is strange issues with the vector dimensions if I try to do something like plot(dates, impact).
I's not seems like right solution but what would the right be?

Thank you!

--
T(t)

Kay Brodersen

unread,
Jan 8, 2015, 6:35:57 AM1/8/15
to Antonina Nesterenko, causal...@googlegroups.com
Hi Antonina,

See the previous thread. If the data passed into CausalImpact() is a time-series object (e.g., created by zoo()), the plot will show an appropriate time axis automatically:

Inline images 1

Kay


--
You received this message because you are subscribed to the Google Groups "CausalImpact" group.
To unsubscribe from this group and stop receiving emails from it, send an email to causalimpact...@googlegroups.com.
To post to this group, send email to causal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/causalimpact/CAHGyx_L5n%3DPnSfTGNng8AVqQFfQMiGE%2BJaeLTJ0%3DFWOF3kxdVA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages