## Not run:
# #gs is a GatingSet
# plot(gs) # the same as plot(gs[[1]])
# #plot a substree rooted from 'CD4'
# plot(gs, "CD4")
#
# # output as svg format with onclick event of each node displaying the gate(saved as png files) within pop-up window
# plot(gs[[1]], dir = "myFolder")
#
# # customize the size of svg and png files
# plot(gh, dir = "myFolder", svg.par =list(width = 7, height = 7), png.par = list(width = 200, height = 200)
#
# #each node link to multiple gates across samples
# #here is the example code showing how to embed
# #the svg output within knitr quick report
#
# #+ eval=T, results = "asis", message = F
# svgFile <- plot(gs, dir = './svg', svg.par =list(width = 7, height = 7), png.par = list(width = 400, height = 400 ))
# cat("<embed src=", svgFile, " type='image/svg+xml' />", sep = "")
# ## End(Not run)
Run the code above in your browser using DataLab