Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #151 use coord_cartesian #152

Merged
merged 2 commits into from
Jul 28, 2021

Conversation

pchelle
Copy link
Collaborator

@pchelle pchelle commented Jul 26, 2021

  • coord_trans() can't be used for the transformation because of the method adding the watermark in background. Consequently, log and discrete transformations still use scale_x/y_...()
  • For the same reason, coord_cartesian() is used to set the axis limits
  • suppressMessage is needed for the same reason as used for scale: multiple coord systems or scales lead to ggplot unwanted and unnecessary messages

pchelle added 2 commits July 26, 2021 08:41
- `coord_trans()` can't be used for the transformation because the method adding the watermark in background. Consequently, log and discrete transformations still use scale_x/y... 
- For the same reason, `coord_cartesian()` is used to set the axis limits
- suppressMessage is needed for the same reason as scale: multiple coord systems or scales lead to ggplot unwanted messages
ggplot functions for labels and watermark do not use the same size unit.
A conversion factor was used to fix that
@codecov-commenter
Copy link

Codecov Report

Merging #152 (0ed5b68) into develop (c30a4d4) will increase coverage by 0.12%.
The diff coverage is 90.90%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #152      +/-   ##
===========================================
+ Coverage    50.78%   50.91%   +0.12%     
===========================================
  Files           54       54              
  Lines         2408     2414       +6     
===========================================
+ Hits          1223     1229       +6     
  Misses        1185     1185              
Impacted Files Coverage Δ
R/plotconfiguration-axis.R 85.22% <87.50%> (+0.70%) ⬆️
R/utilities-background.R 76.19% <100.00%> (+0.38%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c30a4d4...0ed5b68. Read the comment docs.

@Yuri05 Yuri05 merged commit 5109ecc into Open-Systems-Pharmacology:develop Jul 28, 2021
@pchelle pchelle deleted the 151-coord-trans branch February 15, 2024 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants