Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
BioHPC
astrocyte_example_chipseq
Commits
c7dacf7c
Commit
c7dacf7c
authored
Sep 23, 2021
by
Erand Smakaj
Browse files
Improves font sizes on chart axes and legend. Issue ~/issues/2
parent
3543df7d
Pipeline
#11113
failed with stages
in 2 minutes and 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
vizapp/server.R
View file @
c7dacf7c
...
...
@@ -2,6 +2,7 @@
library
(
shiny
)
library
(
shinyFiles
)
library
(
ggplot2
)
library
(
ChIPseeker
)
library
(
TxDb.Hsapiens.UCSC.hg19.knownGene
)
...
...
@@ -29,17 +30,24 @@ shinyServer(function(input, output, session) {
txdb
<-
TxDb.Hsapiens.UCSC.hg19.knownGene
plotFontSize
=
14
;
plotTheme
=
theme
(
axis.text
=
element_text
(
size
=
plotFontSize
),
axis.title
=
element_text
(
size
=
plotFontSize
,
face
=
"bold"
),
legend.text
=
element_text
(
size
=
plotFontSize
),
legend.title
=
element_text
(
size
=
plotFontSize
,
face
=
"bold"
))
peakAnnoList
<-
lapply
(
filenames
,
annotatePeak
,
TxDb
=
txdb
,
tssRegion
=
c
(
-3000
,
3000
),
verbose
=
FALSE
)
output
$
plot1
<-
renderPlot
({
plotAnnoBar
(
peakAnnoList
)
plotAnnoBar
(
peakAnnoList
)
+
plotTheme
})
output
$
plot2
<-
renderPlot
({
plotDistToTSS
(
peakAnnoList
)
plotDistToTSS
(
peakAnnoList
)
+
plotTheme
})
})
})
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