OpasnetUtils/Plot: Difference between revisions

From Opasnet
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 12: Line 12:
label="Initiate functions"
label="Initiate functions"
graphics="1"
graphics="1"
showcode="1"
>
>
# SETMETHOD PLOT ################ plot diagrams about ovariable data
# SETMETHOD PLOT ################ plot diagrams about ovariable data

Revision as of 10:51, 15 June 2012



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