Skip to content

Commit

Permalink
update to visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
saketkc committed Apr 8, 2024
1 parent 4b36124 commit 3c09102
Show file tree
Hide file tree
Showing 79 changed files with 83 additions and 85 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: covmuller
Type: Package
Title: A tool to model COVID19 variant prevalence using data from GISAID
Version: 0.1.2.0007
Date: 2024-01-21
Version: 0.1.3.9001
Date: 2024-04-08
Author: Saket Choudhary
Maintainer: Saket Choudhary <[email protected]>
Description: covmuller can be used to process data from GISAID and
Expand Down
6 changes: 3 additions & 3 deletions R/visualization.R
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ PlotSequencedPropHeatmap <- function(df) {
#' @importFrom magrittr %>%
#' @importFrom tibble deframe
#' @importFrom ggplot2 aes_string coord_cartesian ggplot geom_bar geom_text labs scale_y_continuous scale_x_discrete xlab ylab guide_axis position_dodge
#' @importFrom scales comma label_percent label_number cut_short_scale
#' @importFrom scales append comma label_percent label_number cut_short_scale
#' @importFrom ggtext element_markdown
#' @importFrom patchwork wrap_plots
#' @export
Expand Down Expand Up @@ -150,7 +150,7 @@ BarPlot <- function(df, xaxis = "MonthYear",
size = 3
)
} else {
df[, paste0(yaxis, "_acc")] <- label_number(accuracy = 1, scale_cut = cut_short_scale())(values)
df[, paste0(yaxis, "_acc")] <- label_number(accuracy = 1, scale_cut = append(cut_short_scale(), 1, 1))(values)
p <- p + geom_text(
data = df,
mapping = aes_string(
Expand Down Expand Up @@ -180,7 +180,7 @@ BarPlot <- function(df, xaxis = "MonthYear",
size = 3
)
}
p <- p + scale_y_continuous(labels = label_number(accuracy = 1, scale_cut = cut_short_scale())) +
p <- p + scale_y_continuous(labels = label_number(accuracy = 1, scale_cut = append(cut_short_scale(), 1, 1))) +
scale_x_discrete(guide = guide_axis(angle = xangle)) +
xlab("") +
ylab(ylabel) +
Expand Down
2 changes: 1 addition & 1 deletion docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/LICENSE-text.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/articles/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions docs/deps/jquery-3.6.0/jquery-3.6.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2021-03-02T17:08Z
*/
( function( global, factory ) {

Expand Down
2 changes: 1 addition & 1 deletion docs/deps/jquery-3.6.0/jquery-3.6.0.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/deps/jquery-3.6.0/jquery-3.6.0.min.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pandoc: 3.1.12.3
pandoc: 3.1.1
pkgdown: 2.0.7
pkgdown_sha: ~
articles:
Expand All @@ -13,7 +13,7 @@ articles:
VariantAnimation-Switzerland: VariantAnimation-Switzerland.html
VariantAnimation-UK: VariantAnimation-UK.html
VariantAnimation-USA: VariantAnimation-USA.html
last_built: 2024-04-04T18:01Z
last_built: 2024-04-08T11:41Z
urls:
reference: http://saket-choudhary.me/covmuller/reference
article: http://saket-choudhary.me/covmuller/articles
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/CleanAmericanStates.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/CleanCanadaStates.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/CleanIndianStates.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/CleanSouthAfricanStates.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/CollapseLineageToVOCs.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/CombineSequencedCases.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/CountsToPrevalence.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/CovmullerTheme.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/FilterGISAIDIndia.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/FixDate.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/FormatGISAIDMetadata.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/GeocodeAddress.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/GetFiletype.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/GetIndiaConfirmedCasesCumulative.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/GetIndiaConfirmedCasesMonthlyLong.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/GetIndiaConfirmedCasesWeeklyLong.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/GetIndiaDailyCasesCumulative.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/GetIndiaDailyData.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/GetIndiaDeceasedCasesCumulative.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/GetIndiaHospitalization.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/GetIndianStates.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/GetMonthYear.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/GetVOCs.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/PlotSequencedPropHeatmap.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/PlotTotalHeatmap.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/ReadAuspiceInstrument.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/ReadAuspiceMetadata.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3c09102

Please sign in to comment.