Edit code in Rstudio

Dear Friend,
When i want to edit one of ligne, i cannot make it easy, each time i should copy/past in text file then edit,
Example
plot(sp500$Adj Close~sp500$Date,type="l",main="S&P500 Evolution",xlab="Date",ylab = "S&P500 Price",col="blue")
so in next step i just want to change for example the name of my second time series, to plot my second,
is there any solution to edit easly my code ?????

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.