Python or R code use cases?

I have strong Alteryx skills and I am curious what the use cases are for using R or python within Alteryx? Obviously, there is predictive analytics.

An example I was thinking of: Alteryx is very good at batching, but not great at visualization. You can create a pdf in Alteryx, but it probably won’t look super clean and professional. Could you use R or python to do this within Alteryx and then batch and output it?