Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Gitlab migration complete. If you have any issue please read the
FAQ
.
Open sidebar
Environmental Cheminformatics
shinyscreen
Commits
8f99bbac
Verified
Commit
8f99bbac
authored
Apr 01, 2021
by
Todor Kondic
Browse files
plotting: Change palette to Paired
parent
e64fa6db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
R/plotting.R
R/plotting.R
+3
-3
No files found.
R/plotting.R
View file @
8f99bbac
...
...
@@ -157,7 +157,7 @@ plot_palette <- function(pdata) {
breakslabs
<-
pdata
[,
unique
(
.SD
),
.SDcol
=
c
(
"lab_adduct_break"
,
"lab_adduct_tag"
)]
breaks
<-
breakslabs
$
lab_adduct_break
labels
<-
breakslabs
$
lab_adduct_tag
values
<-
pal_maker
(
length
(
breaks
))
values
<-
pal_maker
(
length
(
breaks
)
,
palname
=
"Paired"
)
names
(
values
)
<-
breaks
list
(
breaks
=
breaks
,
labels
=
labels
,
...
...
@@ -241,8 +241,8 @@ plot_spec_w_facet <- function(pdata_ms2,mz_range,palette) {
labels
<-
breakslabs
$
lab_adduct_tag
scale_colour
<-
function
(
name
,
...
)
ggplot2
::
scale_colour_manual
(
values
=
palette
$
values
,
breaks
=
breaks
,
labels
=
labels
,
breaks
=
palette
$
breaks
,
labels
=
palette
$
labels
,
name
=
name
,
...
)
...
...
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