Skip to content

Commit

Permalink
makes pdfs
Browse files Browse the repository at this point in the history
  • Loading branch information
innesbre committed Aug 31, 2018
1 parent 198b977 commit 551714a
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions R/runViz.R
Original file line number Diff line number Diff line change
Expand Up @@ -853,9 +853,9 @@ runShiny <- function(filePath,outPath,
})

output$cqPlotSave <- downloadHandler(
filename="cqPlot.eps",
filename="cqPlot.pdf",
content=function(file) {
postscript(file,width=7,height=6)
pdf(file,width=7,height=6)
print(plot_cqPlot())
dev.off()
}
Expand All @@ -879,9 +879,9 @@ runShiny <- function(filePath,outPath,
})

output$silSave <- downloadHandler(
filename="sil.eps",
filename="sil.pdf",
content=function(file) {
postscript(file,width=6,height=7)
pdf(file,width=6,height=7)
print(plot_sil())
dev.off()
}
Expand Down Expand Up @@ -966,9 +966,9 @@ runShiny <- function(filePath,outPath,
})

output$tsneSave <- downloadHandler(
filename="tsne.eps",
filename="tsne.pdf",
content=function(file) {
postscript(file,width=7,height=7)
pdf(file,width=7,height=7)
print(plot_tsne())
print(plot_tsne_labels())
dev.off()
Expand Down Expand Up @@ -1078,9 +1078,9 @@ runShiny <- function(filePath,outPath,
})

output$tsneMDSave <- downloadHandler(
filename="tsneMD.eps",
filename="tsneMD.pdf",
content=function(file) {
postscript(file,width=7,height=7)
pdf(file,width=7,height=7)
print(plot_tsneMD())
dev.off()
}
Expand Down Expand Up @@ -1191,9 +1191,9 @@ runShiny <- function(filePath,outPath,
})

output$mdScatterSave <- downloadHandler(
filename="mdScatter.eps",
filename="mdScatter.pdf",
content=function(file) {
postscript(file,width=7,height=7)
pdf(file,width=7,height=7)
print(plot_mdScatter())
dev.off()
}
Expand Down Expand Up @@ -1255,9 +1255,9 @@ runShiny <- function(filePath,outPath,
})

output$mdFactorSave <- downloadHandler(
filename="mdFactor.eps",
filename="mdFactor.pdf",
content=function(file) {
postscript(file,width=7,height=7)
pdf(file,width=7,height=7)
print(plot_mdFactor())
dev.off()
}
Expand Down Expand Up @@ -1450,9 +1450,9 @@ runShiny <- function(filePath,outPath,
})

output$heatmapSave <- downloadHandler(
filename="heatmap.eps",
filename="heatmap.pdf",
content=function(file) {
postscript(file,width=11,height=7)
pdf(file,width=11,height=7)
print(plot_dotplot())
dev.off()
}
Expand Down Expand Up @@ -1663,9 +1663,9 @@ runShiny <- function(filePath,outPath,
})

output$clusterGenesSave <- downloadHandler(
filename="clusterGenes.eps",
filename="clusterGenes.pdf",
content=function(file) {
postscript(file,width=12,height=7)
pdf(file,width=12,height=7)
print(plot_clusterGenes())
dev.off()
}
Expand Down Expand Up @@ -1754,9 +1754,9 @@ runShiny <- function(filePath,outPath,
})

output$geneTestSave <- downloadHandler(
filename="geneTest.eps",
filename="geneTest.pdf",
content=function(file) {
postscript(file,width=12,height=7)
pdf(file,width=12,height=7)
print(plot_geneTest())
dev.off()
}
Expand Down Expand Up @@ -1875,9 +1875,9 @@ runShiny <- function(filePath,outPath,
})

output$goiPlot1Save <- downloadHandler(
filename="goi1.eps",
filename="goi1.pdf",
content=function(file) {
postscript(file,width=7,height=7)
pdf(file,width=7,height=7)
if (input$plotClust1 == "clust" & length(res()) > 0) {
print(plot_tsneClust())
if (input$plotLabel1) { print(plot_tsne_labels()) }
Expand All @@ -1904,9 +1904,9 @@ runShiny <- function(filePath,outPath,
})

output$goiPlot2Save <- downloadHandler(
filename="goi2.eps",
filename="goi2.pdf",
content=function(file) {
postscript(file,width=7,height=7)
pdf(file,width=7,height=7)
if (input$plotClust2 == "clust" & length(res()) > 0) {
print(plot_tsneClust())
if (input$plotLabel2) { print(plot_tsne_labels()) }
Expand Down Expand Up @@ -2094,9 +2094,9 @@ runShiny <- function(filePath,outPath,
output$setScatter <- renderPlot(print(plot_setScatter()))

output$setScatterSave <- downloadHandler(
filename="setScatter.eps",
filename="setScatter.pdf",
content=function(file) {
postscript(file,width=7,height=7)
pdf(file,width=7,height=7)
print(plot_setScatter())
dev.off()
}
Expand Down

0 comments on commit 551714a

Please sign in to comment.