We now want to start a new VM. This time we would like to use RStudio in order to inspect and visualize our results.
-
Start a new VM. This time select again the de.NBI default flavor since we do not need that much resources anymore.
-
In the image tab please select Rstudio (
RStudio-ubuntu22.04
). -
In the volume tab please choose the volume you created in the previous part of the workshop. Please use again
/vol/data
as mountpath. Click onAdd +
to add the volume. -
Grant again access to all project members with a
Cloud-portal-support
tag. This way these members get ssh access to your VM and can help you in case something does not work as expected. -
Confirm all checkboxes and click on start. Since it takes some time until the VM is started, please complete the last part of the unix tutorial in the meantime.
-
Again it will take some while to start the machine. On the instance overview, select
How to connect
of the newly started VM and click on the URL. A tab should be opened up in your browser.
-
Login credentials for the RStudio user login are.
Username: ubuntu Password: simplevm
-
In RStudio please open a Terminal first by either selecting the
Terminal
tab, or by clicking onTools
->Terminal
->New Terminal
. -
Download the Script by running wget:
wget https://openstack.cebitec.uni-bielefeld.de:8080/simplevm-workshop/analyse.Rmd
-
Further you have to install necessary R libraries. Please switch back to the R console:
Install the following libraries:
install.packages(c("ggplot2","RColorBrewer","rmarkdown"))
-
You can now open the
analyse.Rmd
R notebook viaFile
->Open File
. -
You can now start the script by clicking on
Run
->Restart R and run all chunks
.
Finally, you may want to publish your results once you are done with your research project. You could provide your data and tools via your snapshot and volumes to a reviewer, who could reproduce your results. Alternatively, you can also provide the Rmarkdown document together with the input data to reproduce the last part of the analysis and the visualization.
You can share your research results via Zenodo, Figshare and other providers who will generate a citable, stable Digital Object Identifier (DOI) for your results. re3data provides an overview of research data repositories that are suitable for your domain-specific research results.