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

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

1. Download R for Windows from CRAN at http://cran.r-project.org/bin/windows/base/ 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:

>mplus.view.plots(reanalysis.gh5)

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.

mplus.view.plots('reanalysis.gh5')
 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 support@statmodel.com for further verification.
Back to top
Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: