The goal of generatervis
is to generate and visualise Clinical data.
To define a data frame, use the following steps:
Define all the vectors that should be the columns of the data frame. Note: Each vector should be of the same length. Suppose
x
,y
, andz
are three columns for a data frame.Combine the columns to form a data frame with the command
data_frame(a,b,c)
.
library(generatervis)
## basic example code
x <- c(3,5,9,7)
y <- c("place_1","place_2","place_3","place_4")
z <- c("x1","x2","x3","x4")
df <- data_frame(x,y,z)
print(df)
#> x y z
#> 1 3 place_1 x1
#> 2 5 place_2 x2
#> 3 9 place_3 x3
#> 4 7 place_4 x4