Skip to content

Commit

Permalink
Replaced deprecated ggplot2 functions
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixErnst committed Jan 17, 2024
1 parent 9e5ae36 commit e338cd2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: tRNA
Title: Analyzing tRNA sequences and structures
Version: 1.21.0
Date: 2022-12-19
Version: 1.21.1
Date: 2024-01-17
Authors@R: person("Felix GM",
"Ernst",
email = "felix.gm.ernst@outlook.com",
Expand Down
2 changes: 1 addition & 1 deletion R/tRNA-plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ setMethod(
df[[name]][df[[name]]$value == 0,"value"] <- "No"
plot <- ggplot2::ggplot(df[[name]],
ggplot2::aes_(x = ~id,
y = ~((..count..)/sum(..count..)),
y = ~(ggplot2::after_stat(count)/sum(ggplot2::after_stat(count))),
fill = ~colour)) +
ggplot2::geom_bar(position = "fill") +
ggplot2::scale_x_discrete(name = "Sample") +
Expand Down

0 comments on commit e338cd2

Please sign in to comment.