OpasnetUtils/Plot

From Opasnet
Revision as of 10:51, 15 June 2012 by Mori (talk | contribs)
Jump to: navigation, search



Description

Plot diagrams about ovariable data

Code

- Hide code

# SETMETHOD PLOT ################ plot diagrams about ovariable data

temp <- setMethod(
	f = "plot",
	signature = signature(x = "ovariable"),
	definition = function(x) {
		plot(
			x    = x@output[, paste("Source", x@name, sep = ".")], 
			y    = x@output$Result, 
			xlab = paste("Source", x@name, sep = "."), 
			ylab = x@output[x@output[, paste("Source", x@name, sep = ".")] == "Data", "Unit"][1], 
			main = x@name
		)
	}
)

temp <- setMethod(
	f = "plot",
	signature = signature(x = "oassessment"),
	definition = function(x) {
		for(i in names(x@vars)) {
			plot(x@vars[[i]])
		}
	}
)

See also