Skip to content

Commit

Permalink
Fix warnings related to linewidth
Browse files Browse the repository at this point in the history
  • Loading branch information
guillecg committed Apr 16, 2024
1 parent 292d898 commit a72235f
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 69 deletions.
4 changes: 2 additions & 2 deletions R/plot-giggenbach-anions.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ plot_base_gigg_anions = function() {
),
color="grey",
alpha=0.5,
linewidth=0.25,
size=0.25, # linewidth in newer ggplot2 versions
linetype="dashed"
) +

Expand All @@ -50,7 +50,7 @@ plot_base_gigg_anions = function() {
fill="grey",
alpha=0.15,
color="grey",
linewidth=0.25,
size=0.25, # linewidth in newer ggplot2 versions
linetype="dashed"
) +

Expand Down
22 changes: 11 additions & 11 deletions R/plot-langelier-ludwig.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ plot_base_ll = function() {
aes(xmin=0, xmax=7, ymin=45, ymax=50),
fill="cadetblue 1",
color="black",
linewidth=0.2,
size=0.25, # linewidth in newer ggplot2 versions
alpha=0.5
) +
annotate(
Expand All @@ -48,7 +48,7 @@ plot_base_ll = function() {
aes(xmin=12.5, xmax=23, ymin=44, ymax=49),
fill="coral 1",
color="black",
linewidth=0.2,
size=0.25, # linewidth in newer ggplot2 versions
alpha=0.3
) +
annotate(
Expand All @@ -65,7 +65,7 @@ plot_base_ll = function() {
aes(xmin=44, xmax=50, ymin=39, ymax=50),
fill="darkolivegreen 1",
color="black",
linewidth=0.2,
size=0.25, # linewidth in newer ggplot2 versions
alpha=0.3
) +
annotate(
Expand All @@ -83,7 +83,7 @@ plot_base_ll = function() {
aes(xmin=0, xmax=7, ymin=37, ymax=45),
fill="cadetblue 3",
color="black",
linewidth=0.2,
size=0.25, # linewidth in newer ggplot2 versions
alpha=0.9
) +
annotate(
Expand All @@ -100,7 +100,7 @@ plot_base_ll = function() {
aes(xmin=0, xmax=2.5, ymin=0, ymax=20),
fill="darkolivegreen 3",
color="black",
linewidth=0.2,
size=0.25, # linewidth in newer ggplot2 versions
alpha=0.9
) +
annotate(
Expand All @@ -118,7 +118,7 @@ plot_base_ll = function() {
aes(xmin=10, xmax=20, ymin=2.5, ymax=10),
fill="cornsilk 1",
color="black",
linewidth=0.2,
size=0.25, # linewidth in newer ggplot2 versions
alpha=0.9
) +
annotate(
Expand All @@ -135,7 +135,7 @@ plot_base_ll = function() {
aes(xmin=37, xmax=50, ymin=0, ymax=15),
fill="aliceblue",
color="black",
linewidth=0.2,
size=0.25, # linewidth in newer ggplot2 versions
alpha=0.9
) +
annotate(
Expand All @@ -153,21 +153,21 @@ plot_base_ll = function() {
xintercept=25,
linetype="dashed",
color="gray",
linewidth=0.2
size=0.25, # linewidth in newer ggplot2 versions
) +
geom_hline(
yintercept=25,
linetype="solid",
color="gray",
linewidth=0.2
size=0.25, # linewidth in newer ggplot2 versions
) +

# Add arrows
geom_segment(
aes(x=36.5, y=14, xend=7.5, yend=37.5),
lineend="butt",
linejoin="mitre",
linewidth=0.5,
size=0.5, # linewidth in newer ggplot2 versions
arrow=arrow(length=unit(0.15, "inches")),
colour="grey"
) +
Expand All @@ -184,7 +184,7 @@ plot_base_ll = function() {
aes(x=7.5, y=44.5, xend=37.5, yend=44.5),
lineend="butt",
linejoin="mitre",
linewidth=0.5,
size=0.5, # linewidth in newer ggplot2 versions
arrow=arrow(length=unit(0.15, "inches")),
colour="grey"
) +
Expand Down
2 changes: 1 addition & 1 deletion R/plot-major-cations.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ plot_base_major_cations = function() {
),
color="grey",
alpha=0.5,
linewidth=0.25,
size=0.25, # linewidth in newer ggplot2 versions
linetype="dashed"
) +

Expand Down
8 changes: 4 additions & 4 deletions figures/ARG23-giggenbach-anions.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 10 additions & 10 deletions figures/ARG23-langelier-ludwig.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a72235f

Please sign in to comment.