r/RStudio • • 12h ago

Coding help How to find inverse of a function

5 Upvotes

Hi everyone! I've just began using R for Mathematical Statistics, where I often have to find the quantiles of a probability. For that I need to find the inverse of the cdf, which are often too complicated to solve by hand. I tried using R, but when I searched up the code for the inverse in the help articles, I didn't find any notes on how to specifically find the inverse of a function, whether univariate or multivariate. How do I go about in this instance? And as a seperate question, if it's not too much: how do I plot multiple graphs in one window? Thanks in advance!