Problem with plot visualisation

Hi everyone, i've just installed R Studio on my Windows 10 computer and i'm experiencing an annoying problem with the plot visualisation. When I enter some commands into the console for creating a plot, the plot is shown in a separate window and i can't have it on the plots section in the R Studio GUI.
I found some other people that experienced the same problem but any of that solutions worked for me.

Thanks in advance

EDIT: I solved it by reinstalling RStudio and selecting my version of R during the installation instead of choosing choosing the auto-detect system.