scatterplot matrix

Level 1
scatterplot matrix

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.

0 Kudos
1 Reply


You can use ggplot2 to achieve this. Here is the documentation :

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 :


# 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!


0 Kudos