Skip to content

Commit

Permalink
Merge pull request #8813 from derekagorhom/Changes_Histogram
Browse files Browse the repository at this point in the history
Small Improvement in the Histogram dialog
  • Loading branch information
N-thony authored Feb 16, 2024
2 parents f36b64d + 8baf3fb commit ba5c440
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions instat/dlgHistogram.vb
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,21 @@ Public Class dlgHistogram
If rdoHistogram.Checked Then
If ucrChkDisplayAsDotPlot.Checked Then
clsRgeomPlotFunction.SetRCommand("geom_dotplot")
clsRgeomPlotFunction.RemoveParameterByName("mapping")
If Not ucrFactorReceiver.IsEmpty Then
clsRgeomPlotFunction.AddParameter("binpositions", Chr(34) & "all" & Chr(34), iPosition:=0)
clsRgeomPlotFunction.AddParameter("stackgroups", "TRUE", iPosition:=1)
Else
clsRgeomPlotFunction.RemoveParameterByName("binpositions")
clsRgeomPlotFunction.RemoveParameterByName("stackgroups")
End If
Else
clsRgeomPlotFunction.SetRCommand("geom_histogram")
clsRgeomPlotFunction.AddParameter("mapping", clsRFunctionParameter:=clsHistAesFunction)
If Not ucrFactorReceiver.IsEmpty Then
clsRgeomPlotFunction.RemoveParameterByName("binpositions")
clsRgeomPlotFunction.RemoveParameterByName("stackgroups")
End If
End If
ucrFactorReceiver.ChangeParameterName("fill")
If Not ucrSaveHist.bUserTyped Then ucrSaveHist.SetPrefix("histogram")
Expand Down

0 comments on commit ba5c440

Please sign in to comment.