Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
shiny-timecourse-inspector
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pertz-lab
shiny-timecourse-inspector
Commits
cfc6be30
Commit
cfc6be30
authored
Nov 26, 2018
by
dmattek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Defined global variables for font sizes in plots
parent
eebd8a44
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
40 additions
and
7 deletions
+40
-7
modules/auxfunc.R
modules/auxfunc.R
+22
-2
modules/boxPlot.R
modules/boxPlot.R
+5
-1
modules/clDistPlot.R
modules/clDistPlot.R
+5
-1
modules/tabScatter.R
modules/tabScatter.R
+1
-1
modules/trajPlot.R
modules/trajPlot.R
+1
-1
modules/trajRibbonPlot.R
modules/trajRibbonPlot.R
+5
-1
server.R
server.R
+1
-0
No files found.
modules/auxfunc.R
View file @
cfc6be30
...
...
@@ -12,6 +12,18 @@ require(gplots) # for heatmap.2
require
(
grid
)
# for modifying grob
require
(
Hmisc
)
# for CI calculation
# Global parameters ----
# font sizes in pts for plots
PLOTFONTBASE
=
12
PLOTFONTAXISTEXT
=
12
PLOTFONTAXISTITLE
=
12
PLOTFONTFACETSTRIP
=
14
PLOTFONTLEGEND
=
12
# default number of facets in plots
PLOTNFACETDEFAULT
=
3
# Colour definitions ----
rhg_cols
<-
c
(
"#771C19"
,
...
...
@@ -513,7 +525,11 @@ LOCplotTraj = function(dt.arg, # input data table
xlab
(
paste0
(
xlab.arg
,
"\n"
))
+
ylab
(
paste0
(
"\n"
,
ylab.arg
))
+
ggtitle
(
plotlab.arg
)
+
LOCggplotTheme
()
+
LOCggplotTheme
(
in.font.base
=
PLOTFONTBASE
,
in.font.axis.text
=
PLOTFONTAXISTEXT
,
in.font.axis.title
=
PLOTFONTAXISTITLE
,
in.font.strip
=
PLOTFONTFACETSTRIP
,
in.font.legend
=
PLOTFONTLEGEND
)
+
theme
(
legend.position
=
"top"
)
return
(
p.tmp
)
...
...
@@ -655,7 +671,11 @@ LOCggplotScat = function(dt.arg,
p.tmp
=
p.tmp
+
LOCggplotTheme
()
+
LOCggplotTheme
(
in.font.base
=
PLOTFONTBASE
,
in.font.axis.text
=
PLOTFONTAXISTEXT
,
in.font.axis.title
=
PLOTFONTAXISTITLE
,
in.font.strip
=
PLOTFONTFACETSTRIP
,
in.font.legend
=
PLOTFONTLEGEND
)
+
theme
(
legend.position
=
"none"
)
# Marginal distributions don;t work with plotly...
...
...
modules/boxPlot.R
View file @
cfc6be30
...
...
@@ -239,7 +239,11 @@ modBoxPlot = function(input, output, session,
scale_fill_discrete
(
name
=
''
)
+
xlab
(
''
)
+
ylab
(
''
)
+
LOCggplotTheme
()
+
LOCggplotTheme
(
in.font.base
=
PLOTFONTBASE
,
in.font.axis.text
=
PLOTFONTAXISTEXT
,
in.font.axis.title
=
PLOTFONTAXISTITLE
,
in.font.strip
=
PLOTFONTFACETSTRIP
,
in.font.legend
=
PLOTFONTLEGEND
)
+
theme
(
legend.position
=
input
$
selPlotBoxLegendPos
,
axis.text.x
=
LOCrotatedAxisElementText
(
as.numeric
(
input
$
rBAxisLabelsRotate
)))
...
...
modules/clDistPlot.R
View file @
cfc6be30
...
...
@@ -57,7 +57,11 @@ modClDistPlot = function(input, output, session, in.data, in.cols = NULL, in.fna
scale_y_continuous
(
labels
=
percent
)
+
ylab
(
"percentage of cells\n"
)
+
xlab
(
""
)
+
LOCggplotTheme
()
+
LOCggplotTheme
(
in.font.base
=
PLOTFONTBASE
,
in.font.axis.text
=
PLOTFONTAXISTEXT
,
in.font.axis.title
=
PLOTFONTAXISTITLE
,
in.font.strip
=
PLOTFONTFACETSTRIP
,
in.font.legend
=
PLOTFONTLEGEND
)
+
theme
(
axis.text.x
=
LOCrotatedAxisElementText
(
as.numeric
(
input
$
rBAxisLabelsRotate
))
)
...
...
modules/tabScatter.R
View file @
cfc6be30
...
...
@@ -48,7 +48,7 @@ tabScatterPlotUI <- function(id, label = "Comparing t-points") {
numericInput
(
ns
(
'inPlotNcolFacet'
),
'#columns'
,
value
=
2
,
value
=
PLOTNFACETDEFAULT
,
min
=
1
,
step
=
1
)
...
...
modules/trajPlot.R
View file @
cfc6be30
...
...
@@ -20,7 +20,7 @@ modTrajPlotUI = function(id, label = "Plot Individual Time Series") {
numericInput
(
ns
(
'inPlotTrajFacetNcol'
),
'#Columns:'
,
value
=
4
,
value
=
PLOTNFACETDEFAULT
,
min
=
1
,
width
=
'100px'
,
step
=
1
...
...
modules/trajRibbonPlot.R
View file @
cfc6be30
...
...
@@ -210,7 +210,11 @@ modTrajRibbonPlot = function(input, output, session,
y.stim.arg
=
c
(
'ystart'
,
'yend'
),
xlab.arg
=
'Time (min)'
,
ylab.arg
=
''
)
+
LOCggplotTheme
()
+
LOCggplotTheme
(
in.font.base
=
PLOTFONTBASE
,
in.font.axis.text
=
PLOTFONTAXISTEXT
,
in.font.axis.title
=
PLOTFONTAXISTITLE
,
in.font.strip
=
PLOTFONTFACETSTRIP
,
in.font.legend
=
PLOTFONTLEGEND
)
+
theme
(
legend.position
=
input
$
rBlegendPos
)
return
(
p.out
)
...
...
server.R
View file @
cfc6be30
...
...
@@ -20,6 +20,7 @@ library(scales) # for percentages on y scale
library
(
dtw
)
# for dynamic time warping
library
(
imputeTS
)
# for interpolating NAs
# Global parameters ----
# change to increase the limit of the upload file size
options
(
shiny.maxRequestSize
=
200
*
1024
^
2
)
...
...
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