scatterplot matrix
pal
Registered Posts: 3 ✭✭✭
I am new to dataiku and going thru' the tutorials to experiment on my dataset. I am trying to generate scatter-plot matrix using a R-code recipe. However I don't understand how to get graph/ chart as an output of the recipe. Any help? Or is there an existing recipe/ stats tool that can be used/converted to the recipe to generate scatter-plot matrix? I couldn't find one.
Answers
-
GeraldL Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 3 Dataiker
Hello,
You can use ggplot2 to achieve this. Here is the documentation : https://doc.dataiku.com/dss/latest/R/ggplot2.html
You can either render the plot in a jupyter notebook, in a dashboard or with a R code recipe you can output a file in a folder.
Here is an example :
library(dataiku) library(ggplot2) # Recipe inputs df <- dkuReadDataset("my_input_dataset", samplingMethod="full", columns=c("column_a", "column_b")) # Recipe outputs (use the folder_id provided in the recipe) folder <- dkuManagedFolderPath("folder_id") # Create a scatter plot ggplot(df, aes(x=column_a, y=column_b)) + geom_point() # Save as image in output folder ggsave("plot.png", path=folder)
Hope this helps!