Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a part in the vignette customize_plot to show individual cases #68

Merged
merged 3 commits into from
Oct 12, 2018
Merged

Added a part in the vignette customize_plot to show individual cases #68

merged 3 commits into from
Oct 12, 2018

Conversation

jakobschumacher
Copy link
Contributor

Developed during Recon Workshop in Sofia


plot(i.small) +
theme(panel.background = element_rect(fill = "white")) +
geom_hline(yintercept = c(1:max(i.small$counts)), color = "white") +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change this to something like:

  geom_hline(yintercept = seq(max(get_counts(i.small))), color = "white") +

It's best to avoid 1:n style iterations because that could result in accidental reverse sequences.

plot(i.small) +
theme(panel.background = element_rect(fill = "white")) +
geom_hline(yintercept = c(1:max(i.small$counts)), color = "white") +
geom_vline(xintercept = c(min(i.small$dates):max(i.small$dates)), color = "white")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change this to:

  geom_vline(xintercept = get_dates(i.small), color = "white") +

@zkamvar
Copy link
Member

zkamvar commented Oct 11, 2018

Hi Jakob!

Thank you for the contribution. This looks great. I've suggested a couple of changes to style to make the code more robust. Let me know what you think.

@zkamvar zkamvar merged commit f897387 into reconhub:master Oct 12, 2018
zkamvar added a commit that referenced this pull request Oct 30, 2018
This is a bit of an extension of #68 by @jakobschumacher to give
an option to the user to add episquares to the plot.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants