displayR: explore and visualize data

Description Usage Arguments Note Examples

View source: R/displayR.R

Description

Main function of the displayR package. displayR is a package for easy and quick exploration and visualisation of data directed to people with little experience in R

Usage

1
displayR(DF = "None", factordeclare = TRUE, limit = 8, colorPalette = "None")

Arguments

DF

a dataframe or object convertable to a dataframe that will be displayed. If you dont specify a dataframe, a menu to select one will open. It works with most formats like .txt, .csv etc (using fread), it also works with .xls/.xlsx data using readxl. if you encounter any problems with loading the data, try loading it manually.

factordeclare

if your dataframe isnt already structured (the factors are not declared as factors) this argument will do it for you by using the limit argument as margin.

limit

describes the maximum number of instances where the variable is converted into a factor, if the instances(determined by the length of the unique-vector) are higher, the variable wont be converted.

colorPalette

this argument gives you more control about the coloring of your plots, if you specify colors you will see them as factor levels in the plots. Note that it is important that your color vector contains as many colors as the levels of your highest-level factor.

Note

if you encounter any bugs or problems please feel free to contact me on github (@SValv) or via email to s.valverde146@gmail.com. Since I am farely new to coding and have no experience with development of anything this is actually very likely. I'd also welcome feedback of any kind to improve this little baby-project.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
##without data set
displayR()

##With data set
displayR(data)

##without manipulation of data
displayR(data,factordeclare = FALSE)

##change colors in plots by factor. do not run, as "..." will throw an error
displayR(data,colorPalette = c("green","yellow","black",....,"other custom colors"))

SValv/displayR documentation built on June 30, 2021, 12:23 a.m.