In my R Studio, I once plotted a certain function. I deleted R and R Studio and reinstalled it. I made a new Working Directory, cleared the session, looked out for unwanted things in the WD, inspected search paths, checked for auto loading scripts and searched for hidden files. If im plotting a function now, still the once plotted functions shows up. I don't know how this is possible and need help.

> hudoc <- hudoc_mb_Kopie
> regression1 <- lm(hudoc$cost_exp~hudoc$npd_award)
> summary(regression1)
Call:
lm(formula = hudoc$cost_exp ~ hudoc$npd_award)
Residuals:
Min 1Q Median 3Q Max
-1160.6 -259.6 -158.6 67.6 7471.9
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 110.49010 54.26984 2.036 0.0426 *
hudoc$npd_award 0.05966 0.01105 5.401 1.29e-07 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 697.9 on 321 degrees of freedom
(6 observations deleted due to missingness)
Multiple R-squared: 0.08331, Adjusted R-squared: 0.08046
F-statistic: 29.17 on 1 and 321 DF, p-value: 1.29e-07
> plot(regression1)
Hit <Return> to see next plot:
Hit <Return> to see next plot:
Hit <Return> to see next plot:
Hit <Return> to see next plot:

and I think the graph refers to a Shapiro Wilks test I once performed

> my_data <- data.frame(
+ variable1= c(1,2,3,4,5),
+ variable2= c(2,6,3,9,12)
+ )
> regression <- lm(my_data)
> plot(regression)
Hit <Return> to see next plot:
Hit <Return> to see next plot:
Hit <Return> to see next plot:
Hit <Return> to see next plot:

It's possible that the previously plotted function is still showing up in your R Studio environment because it's cached or stored in a temporary location. This can happen even if you've deleted R and R Studio and reinstalled them, as the caching mechanism may still retain the function data.