Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #46 from qiyangqd/qiyangnew
Browse files Browse the repository at this point in the history
fix the probelm of the line graph and x-axis having different dates
  • Loading branch information
xiaoyuanf authored Mar 31, 2020
2 parents 033e3cb + ceda1fc commit d7836d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ make_line_graph <- function(value=list(14611, 16435)){
title = "[pm2.5] VS Time") +
theme_classic() +
# change the range of date on x axis
scale_x_date(limits = as.Date(c(date1,date2)))
scale_x_date(date_labels = "%Y-%m-%d", limits = as.Date(c(date1,date2)))
# add a vertical line showing the time when Chinese overnment launched the plan to control pm2.5

# convert to ggplotly()
Expand Down

0 comments on commit d7836d9

Please sign in to comment.