Skip to content

Commit

Permalink
changed linewidth to size
Browse files Browse the repository at this point in the history
  • Loading branch information
lakras authored Nov 13, 2023
1 parent d17d0f7 commit 1209a2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/visualize_plate_map.R
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ plate_figure_base <- ggplot() +
axis.text=element_text(size=axis_text_size),
legend.position="bottom",
panel.background=element_blank(),
panel.border=element_rect(colour="black", fill=NA, linewidth=0.3),
panel.border=element_rect(colour="black", fill=NA, size=0.3),
panel.grid.major=element_blank(),
panel.grid.minor=element_blank()
)
Expand Down Expand Up @@ -270,17 +270,17 @@ if(input_file_type == "contamination")
data=subset(input_table, appearance_of_potential_contamination == "consensus-level"),
mapping=aes(x=Column0+jitter_horizontal, y=Row0+jitter_vertical, xend=Column+jitter_horizontal, yend=Row+jitter_vertical,
color=appearance_of_potential_contamination),
arrow=arrow(type="open", angle=30, length=unit(arrow_head_length,"cm")), linewidth=arrow_thickness, linetype="longdash") +
arrow=arrow(type="open", angle=30, length=unit(arrow_head_length,"cm")), size=arrow_thickness, linetype="longdash") +
geom_segment(
data=subset(input_table, appearance_of_potential_contamination == "minor and consensus-level"),
mapping=aes(x=Column0+jitter_horizontal, y=Row0+jitter_vertical, xend=Column+jitter_horizontal, yend=Row+jitter_vertical,
color=appearance_of_potential_contamination),
arrow=arrow(type="open", angle=30, length=unit(arrow_head_length,"cm")), linewidth=arrow_thickness, linetype="longdash") +
arrow=arrow(type="open", angle=30, length=unit(arrow_head_length,"cm")), size=arrow_thickness, linetype="longdash") +
geom_segment(
data=subset(input_table, appearance_of_potential_contamination == "minor alleles"),
mapping=aes(x=Column0+jitter_horizontal, y=Row0+jitter_vertical, xend=Column+jitter_horizontal, yend=Row+jitter_vertical,
color=appearance_of_potential_contamination),
arrow=arrow(type="open", angle=30, length=unit(arrow_head_length,"cm")), linewidth=arrow_thickness) +
arrow=arrow(type="open", angle=30, length=unit(arrow_head_length,"cm")), size=arrow_thickness) +
scale_fill_gradient("Total Estimated Contamination Volume", low="white", high="#CC857E",
limits=c(minimum_contamination_volume, maximum_contamination_volume),
breaks=c(minimum_contamination_volume, maximum_contamination_volume),
Expand Down

0 comments on commit 1209a2d

Please sign in to comment.