Skip to content

Commit

Permalink
replace Nunito Sans
Browse files Browse the repository at this point in the history
  • Loading branch information
pcastellanoescuder committed Dec 15, 2023
1 parent 5533d1a commit 26ae1f2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: ddh
Type: Package
Title: Utility Functions and Data Sets for Data-driven Hypothesis
Version: 0.3.17
Version: 0.3.18
Authors@R: c(
person(given = "Matthew",
family = "Hirschey",
Expand Down
42 changes: 21 additions & 21 deletions R/plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ make_proteinsize <- function(input = list(),
base_plot +
ggplot2::labs(x = "Protein Size") +
ggplot2::theme(axis.text.x = ggplot2::element_text(family = "Roboto Slab", size = 14),
axis.title.x = ggplot2::element_text(family = "Nunito Sans", size = 18,
axis.title.x = ggplot2::element_text(family = "Roboto Slab", size = 18,
margin = ggplot2::margin(t = 12, b = 12)))
}
}
Expand Down Expand Up @@ -567,7 +567,7 @@ make_protein_domain <- function(input = list(),
legend.title = ggplot2::element_blank(),
strip.text = ggplot2::element_text(family = "Chivo", hjust = 0.5, size = 15),
plot.title = ggplot2::element_text(family = "Chivo", hjust = 0.5, size = 15),
text = ggplot2::element_text(family = "Nunito Sans"),
text = ggplot2::element_text(family = "Roboto Slab"),
legend.text = ggplot2::element_text(size = 15),
axis.text = ggplot2::element_blank(),
axis.ticks = ggplot2::element_blank()
Expand All @@ -577,7 +577,7 @@ make_protein_domain <- function(input = list(),
plot_complete <-
base_plot +
ggplot2::theme(axis.text.x = ggplot2::element_text(family = "Roboto Slab", size = 14),
axis.title.x = ggplot2::element_text(family = "Nunito Sans", size = 18,
axis.title.x = ggplot2::element_text(family = "Roboto Slab", size = 18,
margin = ggplot2::margin(t = 12, b = 12)),
legend.position = "right") +
scale_fill_ddh_d(palette = "protein")
Expand Down Expand Up @@ -732,7 +732,7 @@ make_radial <- function(input = list(),
ddh::theme_ddh(base_size = 16) +
{if(!barplot)ggplot2::theme_minimal()} +
{if(!barplot)ggplot2::theme(
text = ggplot2::element_text(family = "Nunito Sans"),
text = ggplot2::element_text(family = "Roboto Slab"),
legend.position = "top",
legend.title = ggplot2::element_blank(),
legend.text = ggplot2::element_text(size = 15),
Expand All @@ -743,7 +743,7 @@ make_radial <- function(input = list(),
axis.title = ggplot2::element_text(size = 16)
)} +
{if(barplot)ggplot2::theme(
text = ggplot2::element_text(family = "Nunito Sans"),
text = ggplot2::element_text(family = "Roboto Slab"),
legend.position = "top",
legend.title = ggplot2::element_blank(),
legend.text = ggplot2::element_text(size = 15),
Expand All @@ -758,7 +758,7 @@ make_radial <- function(input = list(),
plot_complete +
ggplot2::labs(x = "", y = "") + #, title = "Signature Information", caption = "more ...") +
ggplot2::theme(
text = ggplot2::element_text(family = "Nunito Sans"),
text = ggplot2::element_text(family = "Roboto Slab"),
legend.position = "none",
legend.title = ggplot2::element_blank(),
legend.text = ggplot2::element_blank(),
Expand Down Expand Up @@ -883,7 +883,7 @@ make_umap_plot <- function(input = list(),
## theme changes
ddh::theme_ddh() +
ggplot2::theme(
text = ggplot2::element_text(family = "Nunito Sans"),
text = ggplot2::element_text(family = "Roboto Slab"),
legend.position = "top",
legend.title = ggplot2::element_blank(),
legend.text = ggplot2::element_text(size = 15),
Expand Down Expand Up @@ -1157,7 +1157,7 @@ make_pubmed <- function(input = list(),
ddh::theme_ddh(base_size = 16,
margin = 20) +
ggplot2::theme(
#text = element_text(family = "Nunito Sans"),
#text = element_text(family = "Roboto Slab"),
#axis.text.y = element_text(family = "Roboto Slab"),
panel.grid.major.y = ggplot2::element_line(color = "grey75", size = .5, linetype = "15")
) +
Expand Down Expand Up @@ -1303,7 +1303,7 @@ make_cellanatogram <- function(input = list(),
fill = "value") +
ggplot2::theme_void(base_size = 14) +
ggplot2::theme(
text = ggplot2::element_text(family = "Nunito Sans"),
text = ggplot2::element_text(family = "Roboto Slab"),
plot.margin = ggplot2::margin(5, 10, 5, 5)
) +
ggplot2::coord_fixed() +
Expand Down Expand Up @@ -1369,7 +1369,7 @@ make_cellanatogramfacet <- function(input = list()) {
fill = "value") +
ggplot2::theme_void(base_size = 14) +
ggplot2::theme(
text = ggplot2::element_text(family = "Nunito Sans"),
text = ggplot2::element_text(family = "Roboto Slab"),
plot.margin = ggplot2::margin(5, 10, 5, 5)
) +
ggplot2::coord_fixed() +
Expand Down Expand Up @@ -1714,7 +1714,7 @@ make_cellexpression <- function(input = list(),
ddh::scale_color_ddh_d(palette = color_type) + #req'd to get protein color
ddh::theme_ddh() +
ggplot2::theme(
text = ggplot2::element_text(family = "Nunito Sans"),
text = ggplot2::element_text(family = "Roboto Slab"),
axis.text = ggplot2::element_text(family = "Roboto Slab"),
axis.text.y = ggplot2::element_text(size = 18),
axis.ticks.y = ggplot2::element_blank(),
Expand Down Expand Up @@ -1835,7 +1835,7 @@ make_cellgeneprotein <- function(input = list(),
scale_color_ddh_d(palette = input$type) +
ddh::theme_ddh() +
ggplot2::theme(
text = ggplot2::element_text(family = "Nunito Sans"),
text = ggplot2::element_text(family = "Roboto Slab"),
axis.text = ggplot2::element_text(family = "Roboto Slab")
) +
NULL
Expand Down Expand Up @@ -1919,7 +1919,7 @@ make_molecular_features_segments <- function(input = list(),
## theme changes
ddh::theme_ddh(grid = "y") +
ggplot2::theme(
text = ggplot2::element_text(family = "Nunito Sans"),
text = ggplot2::element_text(family = "Roboto Slab"),
axis.text = ggplot2::element_text(family = "Roboto Slab"),
axis.text.x = ggplot2::element_blank(),
axis.ticks.x = ggplot2::element_blank(),
Expand Down Expand Up @@ -2328,7 +2328,7 @@ make_celldeps <- function(input = list(),
## theme changes
ddh::theme_ddh() +
ggplot2::theme(
text = ggplot2::element_text(family = "Nunito Sans"),
text = ggplot2::element_text(family = "Roboto Slab"),
axis.text = ggplot2::element_text(family = "Roboto Slab"),
axis.text.x = ggplot2::element_blank(),
axis.ticks.x = ggplot2::element_blank(),
Expand Down Expand Up @@ -2510,7 +2510,7 @@ make_cellbar <- function(input = list(),
## theme changes
ddh::theme_ddh() + #base_size = 15 default
ggplot2::theme(
text = ggplot2::element_text(family = "Nunito Sans"),
text = ggplot2::element_text(family = "Roboto Slab"),
axis.text = ggplot2::element_text(family = "Roboto Slab"),
axis.text.x = ggplot2::element_blank(),
axis.ticks.x = ggplot2::element_blank(),
Expand Down Expand Up @@ -2689,7 +2689,7 @@ make_cellbins <- function(input = list(),
## theme changes
ddh::theme_ddh() +
ggplot2::theme(
text = ggplot2::element_text(family = "Nunito Sans"),
text = ggplot2::element_text(family = "Roboto Slab"),
legend.position = "none",
axis.line.y = ggplot2::element_blank(),
axis.ticks.y = ggplot2::element_blank(),
Expand Down Expand Up @@ -3215,7 +3215,7 @@ make_correlation <- function(input = list(),
## theme changes
ddh::theme_ddh() +
ggplot2::theme(
text = ggplot2::element_text(family = "Nunito Sans"),
text = ggplot2::element_text(family = "Roboto Slab"),
axis.text = ggplot2::element_text(family = "Roboto Slab"),
axis.text.x = ggplot2::element_blank(),
axis.ticks.x = ggplot2::element_blank(),
Expand Down Expand Up @@ -3379,7 +3379,7 @@ make_expdep <- function(input = list(),
## theme changes
ddh::theme_ddh() +
ggplot2::theme(
text = ggplot2::element_text(family = "Nunito Sans"),
text = ggplot2::element_text(family = "Roboto Slab"),
axis.text = ggplot2::element_text(family = "Roboto Slab")
) +
NULL
Expand Down Expand Up @@ -3557,7 +3557,7 @@ make_cell_similarity <- function(data_cell_dependency_sim = cell_dependency_sim,
## theme changes
ddh::theme_ddh() +
ggplot2::theme(
text = ggplot2::element_text(family = "Nunito Sans"),
text = ggplot2::element_text(family = "Roboto Slab"),
axis.text = ggplot2::element_text(family = "Roboto Slab"),
axis.text.x = ggplot2::element_blank(),
axis.ticks.x = ggplot2::element_blank(),
Expand Down Expand Up @@ -3715,7 +3715,7 @@ make_functional_cell <- function(data_gene_pathways = gene_pathways,
## theme changes
ddh::theme_ddh() +
ggplot2::theme(
text = ggplot2::element_text(family = "Nunito Sans"),
text = ggplot2::element_text(family = "Roboto Slab"),
axis.text = ggplot2::element_text(family = "Roboto Slab"),
legend.title = ggplot2::element_blank()
) +
Expand Down Expand Up @@ -3859,7 +3859,7 @@ make_metadata_cell <- function(input = list(),
## theme changes
ddh::theme_ddh() +
ggplot2::theme(
text = ggplot2::element_text(family = "Nunito Sans"),
text = ggplot2::element_text(family = "Roboto Slab"),
axis.text = ggplot2::element_text(family = "Roboto Slab"),
legend.title = ggplot2::element_blank(),
legend.position = "top"
Expand Down

0 comments on commit 26ae1f2

Please sign in to comment.