View scree plot in R PreviousNext
Mplus Discussion > Exploratory Factor Analysis >
 Fei Xing posted on Wednesday, June 28, 2017 - 8:05 am

I am trying to view the scree plot using R in mac. I followed the instructions:

1. Download R for Windows from CRAN at and follow the installation instructions.
2. Download the R source code, mplus.R.
3. Open R. In Windows, go to Start -> Programs -> R.
4. Under the File menu, choose the Source R code… option. Browse to the folder with the mplus.R source code. Select the mplus.R file and click on the Open button. In the R Console window, the following lines will appear:
> source("C:\MplusWork\Develop\Rdev\mplus.R")
[1] "Loaded rhdf5 package"

When I read the lines above, I entered the code:


However, I always got the error message:
"Error in file.exists(file) : object 'autonomy.gh5' not found"

I then change the working directory (because the file is on the desktop, i changed the working directory to the desktop), but still got the same error message. I have zero experience in using R. Could you please help me with this? Did I use the right code?
 Thuy Nguyen posted on Wednesday, June 28, 2017 - 8:18 am
Put quotes around the name of your GH5 file.

 Fei Xing posted on Wednesday, June 28, 2017 - 8:29 am
Thank you very much for your answer, Nguyen! However, I did not get any plot but the following information:

Plot functions:

Plot data extraction functions:

What does this mean?
 Thuy Nguyen posted on Wednesday, June 28, 2017 - 1:29 pm
It looks like your model may not have any plots that have a corresponding Mplus R function. Send your output and GH5 files to for further verification.
Back to top
Add Your Message Here
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Options: Enable HTML code in message
Automatically activate URLs in message