Skip to content

Commit

Permalink
Removing mapping function from the dotplot and add new options when t…
Browse files Browse the repository at this point in the history
…he factor receiver is filled
  • Loading branch information
derekagorhom committed Feb 14, 2024
1 parent adda798 commit 8baf3fb
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 @@ -257,8 +257,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 8baf3fb

Please sign in to comment.