Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Cedric Midoux
Easy16S
Commits
0ef99d1c
Commit
0ef99d1c
authored
May 25, 2020
by
Cedric Midoux
Browse files
ggsave (cm)
parent
88e023e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
panels/dataInput.R
View file @
0ef99d1c
...
...
@@ -385,8 +385,8 @@ plotDownload <- function() {
title
=
"Download last modified plot"
,
size
=
"s"
,
textInput
(
"plotName"
,
"File name : "
,
value
=
"plot"
),
numericInput
(
"plotWidth"
,
"Width : "
,
value
=
7
),
numericInput
(
"plotHeight"
,
"Height : "
,
value
=
7
),
numericInput
(
"plotWidth"
,
"Width
(cm)
: "
,
value
=
7
),
numericInput
(
"plotHeight"
,
"Height
(cm)
: "
,
value
=
7
),
numericInput
(
"plotDPI"
,
"DPI : "
,
value
=
300
),
radioButtons
(
"plotFormat"
,
"File format : "
,
choices
=
c
(
"png"
,
"pdf"
,
"jpeg"
,
"svg"
,
"wmf"
),
selected
=
"png"
,
inline
=
TRUE
),
footer
=
tagList
(
modalButton
(
"Cancel"
),
...
...
@@ -397,7 +397,7 @@ plotDownload <- function() {
output
$
okPlot
<-
downloadHandler
(
filename
=
function
()
{
paste
(
input
$
plotName
,
input
$
plotFormat
,
sep
=
"."
)},
content
=
function
(
file
)
{
ggsave
(
file
,
width
=
input
$
plotWidth
,
height
=
input
$
plotHeight
,
dpi
=
input
$
plotDPI
)}
content
=
function
(
file
)
{
ggsave
(
file
,
width
=
input
$
plotWidth
,
height
=
input
$
plotHeight
,
dpi
=
input
$
plotDPI
,
units
=
"cm"
)}
)
# output$rarefactionMin <- renderText({
...
...
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