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
Sign in / Register
Toggle navigation
Open sidebar
Guillaume Perréal
easy16S
Commits
9325f7cc
Commit
9325f7cc
authored
Nov 28, 2018
by
Midoux Cedric
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
plot size button
parent
9361dabf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
3 deletions
+54
-3
server.R
server.R
+48
-2
ui.R
ui.R
+6
-1
No files found.
server.R
View file @
9325f7cc
...
...
@@ -156,8 +156,54 @@ shinyServer
validate
(
need
(
data16S
(),
""
))
tags
$
div
(
style
=
"text-align:center"
,
title
=
"Download as RData"
,
downloadButton
(
"downloadData"
,
"Download"
,
style
=
"color: black; background-color: gray90"
)
title
=
"Download file as RData"
,
downloadButton
(
"downloadData"
,
"Download RData file"
,
style
=
"color: black; background-color: gray90"
)
)
})
observeEvent
(
input
$
plotSize
,
{
showModal
(
modalDialog
(
title
=
"Setting plot size"
,
numericInput
(
"plotWidth"
,
label
=
"Plot width : "
,
value
=
6
,
min
=
1
,
max
=
50
),
numericInput
(
"plotHeight"
,
label
=
"Plot height : "
,
value
=
6
,
min
=
1
,
max
=
50
),
radioButtons
(
"plotUnits"
,
label
=
"Units : "
,
choices
=
list
(
"in"
,
"cm"
,
"mm"
),
selected
=
"cm"
,
inline
=
TRUE
),
numericInput
(
"plotDPI"
,
label
=
"Plot resolution : "
,
value
=
300
,
min
=
70
,
max
=
500
,
step
=
10
),
selectInput
(
"plotDevice"
,
label
=
"Plot device : "
,
choices
=
list
(
"eps"
,
"ps"
,
"tex"
,
"pdf"
,
"jpeg"
,
"tiff"
,
"png"
,
"bmp"
,
"svg"
),
selected
=
"pdf"
),
size
=
"s"
,
easyClose
=
TRUE
,
footer
=
NULL
)
)
})
...
...
ui.R
View file @
9325f7cc
...
...
@@ -76,7 +76,12 @@ shinyUI(dashboardPage(
# placeholder = "data.fasta"
# )
# ),
uiOutput
(
"downloadUI"
)
hr
(),
uiOutput
(
"downloadUI"
),
tags
$
div
(
align
=
"center"
,
actionButton
(
"plotSize"
,
label
=
"Plot size"
)
)
),
dashboardBody
(
tabsetPanel
(
...
...
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