Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stressaddition
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oekotox
stressaddition
Commits
e7630786
Commit
e7630786
authored
5 years ago
by
Sebastian Henz
Browse files
Options
Downloads
Patches
Plain Diff
Resolve line thickness weirdness, closes
#7
parent
c074b343
No related branches found
No related tags found
1 merge request
!19
Develop
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
R/plot_effect.R
+9
-4
9 additions, 4 deletions
R/plot_effect.R
R/plot_stress.R
+8
-4
8 additions, 4 deletions
R/plot_stress.R
with
18 additions
and
8 deletions
.gitignore
+
1
−
0
View file @
e7630786
...
...
@@ -4,3 +4,4 @@
.Ruserdata
Notizen.md
*.png
This diff is collapsed.
Click to expand it.
R/plot_effect.R
+
9
−
4
View file @
e7630786
...
...
@@ -52,8 +52,8 @@ plot_effect <- function(model,
xlab
=
xlab
,
ylab
=
ylab
,
xaxt
=
"n"
,
bty
=
"L"
,
las
=
1
las
=
1
,
bty
=
"L"
)
points
(
...
...
@@ -129,8 +129,13 @@ plot_effect <- function(model,
}
}
axis
(
1
,
at
=
log_ticks
$
major
,
labels
=
log_ticks
$
major_labels
)
axis
(
1
,
at
=
log_ticks
$
minor
,
labels
=
FALSE
,
tcl
=
-0.25
)
# The setting of col = NA and col.ticks = par("fg") is to prevent ugly line
# thickness issues when plotting as a png with type = "cairo" and at a low
# resolution.
axis
(
1
,
at
=
log_ticks
$
major
,
labels
=
log_ticks
$
major_labels
,
col
=
NA
,
col.ticks
=
par
(
"fg"
))
axis
(
1
,
at
=
log_ticks
$
minor
,
labels
=
FALSE
,
tcl
=
-0.25
,
col
=
NA
,
col.ticks
=
par
(
"fg"
))
plotrix
::
axis.break
(
1
,
breakpos
=
temp
$
axis_break_conc
)
if
(
show_legend
)
{
...
...
This diff is collapsed.
Click to expand it.
R/plot_stress.R
+
8
−
4
View file @
e7630786
...
...
@@ -36,7 +36,6 @@ plot_stress <- function(model,
temp
<-
adjust_smooth_concentrations
(
model
)
curves
<-
temp
$
curves
axis_break_conc
<-
temp
$
axis_break_conc
log_ticks
<-
get_log_ticks
(
curves
$
concentration
)
concentration
<-
c
(
curves
$
concentration
[
1
],
model
$
args
$
concentration
[
-1
])
...
...
@@ -138,9 +137,14 @@ plot_stress <- function(model,
}
}
axis
(
1
,
at
=
log_ticks
$
major
,
labels
=
log_ticks
$
major_labels
)
axis
(
1
,
at
=
log_ticks
$
minor
,
labels
=
FALSE
,
tcl
=
-0.25
)
plotrix
::
axis.break
(
1
,
breakpos
=
axis_break_conc
)
# The setting of col = NA and col.ticks = par("fg") is to prevent ugly line
# thickness issues when plotting as a png with type = "cairo" and at a low
# resolution.
axis
(
1
,
at
=
log_ticks
$
major
,
labels
=
log_ticks
$
major_labels
,
col
=
NA
,
col.ticks
=
par
(
"fg"
))
axis
(
1
,
at
=
log_ticks
$
minor
,
labels
=
FALSE
,
tcl
=
-0.25
,
col
=
NA
,
col.ticks
=
par
(
"fg"
))
plotrix
::
axis.break
(
1
,
breakpos
=
temp
$
axis_break_conc
)
if
(
show_legend
)
{
legend_df
<-
legend_df
[
order
(
legend_df
$
order
),
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment