Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correlations #1018

Merged
merged 9 commits into from
Mar 7, 2016
Merged

Conversation

stevekogo
Copy link
Contributor

Implemented GGpairs plot in correlation dialogue

@rdstern
Copy link
Collaborator

rdstern commented Mar 4, 2016

Great!

From: Steve Kogo [mailto:[email protected]]
Sent: 04 March 2016 13:42
To: africanmathsinitiative/Instat
Subject: [Instat] Correlations (#1018)

Implemented GGpairs plot in correlation dialogue


You can view, comment on, or merge this pull request online at:

#1018

Commit Summary

File Changes

  • M instat/dlgCorrelation.designer.vbhttps://github.com/Correlations #1018/files#diff-0 (18)
  • M instat/dlgCorrelation.resxhttps://github.com/Correlations #1018/files#diff-1 (238)
  • M instat/dlgCorrelation.vbhttps://github.com/Correlations #1018/files#diff-2 (30)
  • M instat/sdgCorrPlot.Designer.vbhttps://github.com/Correlations #1018/files#diff-3 (63)
  • M instat/sdgCorrPlot.vbhttps://github.com/Correlations #1018/files#diff-4 (55)
  • M instat/static/InstatObject/R/Rsetup.Rhttps://github.com/Correlations #1018/files#diff-5 (4)

Patch Links:


Reply to this email directly or view it on GitHubhttps://github.com//pull/1018.

clsRGGPairsFunction.AddParameter("columns", dlgCorrelation.ucrReceiverMultipleColumns.GetVariableNames())
clsRGraphics.SetOperatorParameter(True, clsRFunc:=clsRGGPairsFunction)
'Calltype is not the right one but it works
frmMain.clsRLink.RunScript(clsRGraphics.GetScript(), 2)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did this fix the error you were getting?

@stevekogo
Copy link
Contributor Author

@dannyparsons I have fixed the ggpairs function in the sub-dialogue,

@rdstern Could you suggest more plots to include in the correlation dialogue?

@stevekogo
Copy link
Contributor Author

@africanmathsinitiative/instat are required to install packages CCA and GGally in your Rstudio in for smooth running of your project

@stevekogo
Copy link
Contributor Author

@rdstern @dannyparsons I have implemented GGcorr in regression sub-dialogue though it is working with the defaults arguments at the moment.
I have the opinion that we save the correlation matrix before using it to make the plot.

End Sub

Private Sub ucrReceiverMultipleColumns_SelectionChanged() Handles ucrReceiverMultipleColumns.SelectionChanged
Public Sub ucrReceiverMultipleColumns_SelectionChanged() Handles ucrReceiverMultipleColumns.SelectionChanged
MultipleVariables = ucrSelectorDataFrameVarAddRemove.ucrAvailableDataFrames.strCurrDataFrame.ToString & "[," & ucrReceiverMultipleColumns.GetVariableNames() & "]"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this line be removed? I don't think it's needed anymore.

@dannyparsons
Copy link
Contributor

Hi Steve, this is looking great. I think Roger had the same idea about the correlation matrix


Private Sub ucrReceiverMultipleColumns_Load(sender As Object, e As EventArgs) Handles ucrReceiverMultipleColumns.Load

End Sub
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove this? it's not doing anything.

@stevekogo
Copy link
Contributor Author

@dannyparsons Kindly check the implementation of TestOKEnabled.


Private Sub TestOKEnabled()
If (rdoTwoColumns.Checked = True) Then
If ucrReceiverFirstColumn.IsEmpty() = False And ucrReceiverSecondColumn.IsEmpty() = False And (rdoPearson.Checked = True Or rdoKendall.Checked = True Or rdoSpearman.Checked = True) Then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This Ifstill needs an Else to set Ok Enabled to False. Otherwise, Ok is never disabled when rdoTwoColumns is checked.

@stevekogo
Copy link
Contributor Author

@dannyparsons Kindly check the implementation of the proposed changes.

dannyparsons added a commit that referenced this pull request Mar 7, 2016
@dannyparsons dannyparsons merged commit 6dd3246 into IDEMSInternational:master Mar 7, 2016
@dannyparsons
Copy link
Contributor

Looks great. Can you explain to Mary how and why we changed the TestOKEnabled sub so that she knows about the change. Thanks.

@stevekogo stevekogo deleted the correlations branch May 6, 2016 07:01
dannyparsons added a commit that referenced this pull request Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants