Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
R-packages
ufs
Commits
3a3477be
Commit
3a3477be
authored
Jan 06, 2021
by
Gjalt-Jorn Peters
Browse files
added check whether cairo capabilities exist
parent
779e296a
Pipeline
#238116561
failed with stage
in 5 minutes and 52 seconds
Changes
9
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
16 additions
and
23 deletions
+16
-23
R/associationsDiamondPlot.R
R/associationsDiamondPlot.R
+1
-3
R/biAxisDiamondPlot.R
R/biAxisDiamondPlot.R
+1
-3
R/diamondPlot.R
R/diamondPlot.R
+1
-3
R/duoComparisonDiamondPlot.R
R/duoComparisonDiamondPlot.R
+1
-3
R/ggSave.R
R/ggSave.R
+2
-2
R/meanSDtoDiamondPlot.R
R/meanSDtoDiamondPlot.R
+1
-3
R/meansComparisonDiamondPlot.R
R/meansComparisonDiamondPlot.R
+1
-3
R/meansDiamondPlot.R
R/meansDiamondPlot.R
+1
-3
R/opts.R
R/opts.R
+7
-0
No files found.
R/associationsDiamondPlot.R
View file @
3a3477be
...
...
@@ -105,9 +105,7 @@ associationsDiamondPlot <- function(dat, covariates, criteria,
outputFile
=
NULL
,
outputWidth
=
10
,
outputHeight
=
10
,
ggsaveParams
=
list
(
units
=
'cm'
,
dpi
=
300
,
type
=
"cairo"
),
ggsaveParams
=
ufs
::
opts
$
get
(
"ggsaveParams"
),
...
)
{
res
<-
list
(
input
=
as.list
(
environment
()),
...
...
R/biAxisDiamondPlot.R
View file @
3a3477be
...
...
@@ -100,9 +100,7 @@ biAxisDiamondPlot <- function(dat, items = NULL,
outputFile
=
NULL
,
outputWidth
=
10
,
outputHeight
=
10
,
ggsaveParams
=
list
(
units
=
'cm'
,
dpi
=
300
,
type
=
"cairo"
),
ggsaveParams
=
ufs
::
opts
$
get
(
"ggsaveParams"
),
...
)
{
if
(
length
(
leftAnchors
)
!=
length
(
rightAnchors
))
{
...
...
R/diamondPlot.R
View file @
3a3477be
...
...
@@ -82,9 +82,7 @@ diamondPlot <- function(data,
outputFile
=
NULL
,
outputWidth
=
10
,
outputHeight
=
10
,
ggsaveParams
=
list
(
units
=
'cm'
,
dpi
=
300
,
type
=
"cairo"
),
ggsaveParams
=
ufs
::
opts
$
get
(
"ggsaveParams"
),
...
)
{
### In case we want to check for a complete dataframe
...
...
R/duoComparisonDiamondPlot.R
View file @
3a3477be
...
...
@@ -25,9 +25,7 @@ duoComparisonDiamondPlot <- function(dat, items = NULL,
outputFile
=
NULL
,
outputWidth
=
10
,
outputHeight
=
10
,
ggsaveParams
=
list
(
units
=
'cm'
,
dpi
=
300
,
type
=
"cairo"
),
ggsaveParams
=
ufs
::
opts
$
get
(
"ggsaveParams"
),
...
)
{
if
(
length
(
unique
(
stats
::
na.omit
(
dat
[,
compareBy
])))
!=
2
)
{
...
...
R/ggSave.R
View file @
3a3477be
...
...
@@ -81,12 +81,12 @@ ggSave <- function(file=NULL, plot = ggplot2::last_plot(),
if
(
device
[
i
]
==
'jpg'
)
{
device
[
i
]
<-
'jpeg'
;
if
(
is.null
(
type
[
i
]))
{
if
(
is.null
(
type
[
i
])
&&
length
(
capabilities
(
"cairo"
)
>
0
)
&&
capabilities
(
"cairo"
)
)
{
type
[
i
]
<-
"cairo"
;
}
}
if
((
is.null
(
type
[
i
]))
&&
(
device
[
i
]
==
"png"
))
{
if
((
is.null
(
type
[
i
]))
&&
(
device
[
i
]
==
"png"
)
&&
length
(
capabilities
(
"cairo"
)
>
0
)
&&
capabilities
(
"cairo"
)
)
{
type
[
i
]
<-
"cairo-png"
;
}
...
...
R/meanSDtoDiamondPlot.R
View file @
3a3477be
...
...
@@ -86,9 +86,7 @@ meanSDtoDiamondPlot <- function(dat = NULL,
outputFile
=
NULL
,
outputWidth
=
10
,
outputHeight
=
10
,
ggsaveParams
=
list
(
units
=
'cm'
,
dpi
=
300
,
type
=
"cairo"
),
ggsaveParams
=
ufs
::
opts
$
get
(
"ggsaveParams"
),
...
)
{
varNamesToUse
<-
c
(
means
,
sds
,
ns
);
...
...
R/meansComparisonDiamondPlot.R
View file @
3a3477be
...
...
@@ -129,9 +129,7 @@ meansComparisonDiamondPlot <- function(dat, items = NULL,
outputFile
=
NULL
,
outputWidth
=
10
,
outputHeight
=
10
,
ggsaveParams
=
list
(
units
=
'cm'
,
dpi
=
300
,
type
=
"cairo"
),
ggsaveParams
=
ufs
::
opts
$
get
(
"ggsaveParams"
),
...
)
{
res
<-
list
();
...
...
R/meansDiamondPlot.R
View file @
3a3477be
...
...
@@ -95,9 +95,7 @@ meansDiamondPlot <- function(data, items = NULL, labels = NULL,
outputFile
=
NULL
,
outputWidth
=
10
,
outputHeight
=
10
,
ggsaveParams
=
list
(
units
=
'cm'
,
dpi
=
300
,
type
=
"cairo"
),
ggsaveParams
=
ufs
::
opts
$
get
(
"ggsaveParams"
),
dat
=
NULL
,
...
)
{
...
...
R/opts.R
View file @
3a3477be
...
...
@@ -206,6 +206,13 @@ opts$defaults <-
ggBaseSize
=
11
,
ggsaveParams
=
list
(
units
=
'cm'
,
dpi
=
300
,
type
=
ifelse
(
length
(
capabilities
(
"cairo"
)
>
0
)
&&
capabilities
(
"cairo"
),
"cairo"
,
NULL
)),
### Default heading level, for convenience
defaultHeadingLevel
=
3
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment