I want to plot stock prices in time interval but too many values in short time intervals here is the data and plot
How can i fix that?
> head(df)
# A tibble: 6 x 5
Order_time Best_Bid mid_price spread Best_Ask
<dttm> <dbl> <dbl> <dbl> <dbl>
1 2018-03-01 09:40:01 11.7 11.7 0.01000 11.7
2 2018-03-01 09:40:02 11.7 11.7 0.01000 11.7
3 2018-03-01 09:40:02 11.7 11.7 0.01000 11.7
4 2018-03-01 09:40:02 11.7 11.7 0.01000 11.7
5 2018-03-01 09:40:03 11.7 11.7 0.01000 11.7
6 2018-03-01 09:40:03 11.7 11.7 0.01000 11.7
Code of plot
ggplot() + geom_line(df,mapping = aes(x=df$Order_time,y=df$Best_Bid))