toggplot: Change to ggplot format

Description Usage Arguments Value See Also Examples

Description

Function that changes the format of the Average_simulation.f output matrix or the output of the attractor analysis in order to plot these results using ggplot2 package.

Usage

1

Arguments

x

The output matrix of the Average_simulation.f function or the output vector of probabilities of activation of the nodes of the Get_attractor.f or Get_attractor_parallel.f functions.

Value

A data.frame with the appropriate structure to plot the results using the ggplot2 package.

See Also

See Also Average_simulations.f Get_Attractor.f Get_Attractor_parallel.f

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
 #Output matrix of the Average_simulations.f function of an example network:
  data("AVG_cellcycle")

 #Plot the results with ggplot2:
   AVG2<-toggplot(AVG_cellcycle)
   
   library(ggplot2)
   ggplot(data=AVG2,aes(x=time,y=value)) +
   geom_line( colour="#336600",size = 1.5) + ylab(" % of activation") + 
   xlab("Iterations") + facet_wrap(~variable)

SPIDDOR/SPIDDOR documentation built on May 9, 2019, 11:42 a.m.