R/mosaicmenu.R

Defines functions mosaicMenuItem weHaveMosaicableTables

Documented in mosaicMenuItem weHaveMosaicableTables

mosaicMenuItem <- function() {
	if (weHaveMosaicableTables()) {
		mosaicSelectDialog() 
	} else {
		Message("No tables available for this type of plot","warning")
	}
}		


weHaveMosaicableTables <- function() {
	length(Filter(function(x)(inherits(get(x),"table")|inherits(get(x),"ftable")|inherits(get(x),"structable")),ls(envir=globalenv())))>0
}

Try the RcmdrPlugin.mosaic package in your browser

Any scripts or data that you put into this service are public.

RcmdrPlugin.mosaic documentation built on May 2, 2019, 2:32 p.m.