IDEMSInternational / R-Instat

A statistics software package powered by R
http://r-instat.org/
GNU General Public License v3.0
38 stars 103 forks source link

Frequency table and graph options subdialog"The Total Column check box" #5111

Open MainaJohnO opened 5 years ago

MainaJohnO commented 5 years ago

Using the inbuilt R data set namely CO2 from the package datasets.

From the Two Way Frequencies Dialog under the Climatic Menu. See attached filled dialog two way frequencies dialog two way frequencies dialog

Using the options button, it takes me to the subdialog, under the table options we have the Total Column check box. whether the check box is checked or not the code from the script window is the same which shouldn't be the case. see the attached code.

**# Code generated by the dialog, Two Way Frequencies (Total Column check box checked) CO2 <- data_book$get_data_frame(drop_unused_filter_levels=TRUE, data_name="CO2") sjPlot::sjtab(data=CO2, Treatment, Plant, show.col.prc=TRUE, show.summary=FALSE, digits=0, fun="xtab", title="", show.obs=FALSE) rm(CO2)

Code generated by the dialog, Two Way Frequencies (Total Column check box unchecked) CO2 <- data_book$get_data_frame(drop_unused_filter_levels=TRUE, data_name="CO2") sjPlot::sjtab(data=CO2, Treatment, Plant, show.col.prc=TRUE, show.summary=FALSE, digits=0, fun="xtab", title="", show.obs=FALSE) rm(CO2)** The results from the two options of checking or unchecking the Total Column check box are the same, in that with the Total Column check box uncheked or not i still get the Total Column in the table results see the attached results results

dannyparsons commented 5 years ago

From discussion I thought it was determined that the checkbox on the subdialog was for the name of the Total column and not to include or exclude it. So I suggest next steps:

Muthenya commented 5 years ago

From the Two Way Frequencies Dialog under the Climatic Menu. See attached filled dialog two way frequencies dialog

@MainaJohnO just a small correction. This should be the Describe menu and not the Climatic.

Ivanluv commented 5 years ago

Unable to find a way to include the total column. @maxwellfundi I need guidance with this

dannyparsons commented 5 years ago

@Ivanluv did you look at the documentation for the R function sjPlot::sjtab? This option may not exist at all, and then all we can do is raise it as an issue to the author of the function.

As well as that my first point should be done:

  • Possibly rename the checkbox on the sub dialog to make it clearer that this is the name for the total column
Ivanluv commented 5 years ago

@dannyparsons I did look at the Documentation but found no option .Alternatively whats the suitable name to rename the checkbox

dannyparsons commented 5 years ago

I couldn't either, it probably doesn't exist.

shadrackkibet commented 3 years ago

@Ivanluv this looks like a small issue did you rename the checkbox? If yes we can mark the first point as done.

Ivanluv commented 3 years ago

@shadrackkibet I didn't rename the checkbox. Could you suggest an appropriate name