synth-inference / synthdid

Synthetic difference in differences
https://synth-inference.github.io/synthdid
BSD 3-Clause "New" or "Revised" License
262 stars 98 forks source link

Integer values for dates in synth did plot #109

Open gcasamat opened 1 year ago

gcasamat commented 1 year ago

Hi, I made a graph representing my synthdid estimate, that looks as follows: download Would it be possible to have the year taking integer values on the horizontal axis? Many thanks.

davidahirshberg commented 1 year ago

You should be able to configure the x axis ticks in the usual ggplot style: say plot(estimate) + scale_x_continuous( … ) where … is replaced with appropriate options. See the documentation for scale_x_continuous here.

https://ggplot2.tidyverse.org/reference/scale_continuous.html

gcasamat commented 1 year ago

I will try this. Thanks a lot!