# Convert a filterList to a data.table useful for ggplot

Source: `R/fortify.R`
`fortify.filterList.Rd`

It tries to merge with pData that is associated with filterList as attribute 'pd'

    # S3 method for filterList
    fortify(model, data = NULL, nPoints = NULL, ...)

## Arguments

model | filterList
data | not used
nPoints | not used
... | not used.

## Value

data.table

## Examples

    dataDir <- system.file("extdata",package="flowWorkspaceData")
    gs <- load_gs(list.files(dataDir, pattern = "gs_manual",full = TRUE))
    gates <- gs_pop_get_gate(gs, "CD4")
    gates <- as(gates, "filterList") #must convert list to filterList in order for the method to dispatch properly
    fortify(gates)#>     <B710-A>   <R780-A>               .rownames
    #>  1: 3538.131 1113.31621 CytoTrol_CytoTrol_1.fcs
    #>  2: 3533.929 1246.81847 CytoTrol_CytoTrol_1.fcs
    #>  3: 3521.393 1377.38539 CytoTrol_CytoTrol_1.fcs
    #>  4: 3500.728 1502.87309 CytoTrol_CytoTrol_1.fcs
    #>  5: 3472.273 1621.22105 CytoTrol_CytoTrol_1.fcs
    #>  6: 3436.497 1730.48601 CytoTrol_CytoTrol_1.fcs
    #>  7: 3393.986 1828.87383 CytoTrol_CytoTrol_1.fcs
    #>  8: 3345.438 1914.76899 CytoTrol_CytoTrol_1.fcs
    #>  9: 3291.651 1986.76110 CytoTrol_CytoTrol_1.fcs
    #> 10: 3233.507 2043.66804 CytoTrol_CytoTrol_1.fcs
    #> 11: 3171.962 2084.55541 CytoTrol_CytoTrol_1.fcs
    #> 12: 3108.026 2108.75183 CytoTrol_CytoTrol_1.fcs
    #> 13: 3042.749 2115.86001 CytoTrol_CytoTrol_1.fcs
    #> 14: 2977.202 2105.76322 CytoTrol_CytoTrol_1.fcs
    #> 15: 2912.462 2078.62725 CytoTrol_CytoTrol_1.fcs
    #> 16: 2849.592 2034.89769 CytoTrol_CytoTrol_1.fcs
    #> 17: 2789.625 1975.29255 CytoTrol_CytoTrol_1.fcs
    #> 18: 2733.544 1900.79057 CytoTrol_CytoTrol_1.fcs
    #> 19: 2682.271 1812.61505 CytoTrol_CytoTrol_1.fcs
    #> 20: 2636.648 1712.21385 CytoTrol_CytoTrol_1.fcs
    #> 21: 2597.424 1601.23554 CytoTrol_CytoTrol_1.fcs
    #> 22: 2565.242 1481.50238 CytoTrol_CytoTrol_1.fcs
    #> 23: 2540.632 1354.98040 CytoTrol_CytoTrol_1.fcs
    #> 24: 2523.997 1223.74707 CytoTrol_CytoTrol_1.fcs
    #> 25: 2515.611 1089.95725 CytoTrol_CytoTrol_1.fcs
    #> 26: 2515.611  955.80776 CytoTrol_CytoTrol_1.fcs
    #> 27: 2523.997  823.50133 CytoTrol_CytoTrol_1.fcs
    #> 28: 2540.632  695.21042 CytoTrol_CytoTrol_1.fcs
    #> 29: 2565.242  573.04159 CytoTrol_CytoTrol_1.fcs
    #> 30: 2597.424  459.00082 CytoTrol_CytoTrol_1.fcs
    #> 31: 2636.648  354.96067 CytoTrol_CytoTrol_1.fcs
    #> 32: 2682.271  262.62947 CytoTrol_CytoTrol_1.fcs
    #> 33: 2733.544  183.52331 CytoTrol_CytoTrol_1.fcs
    #> 34: 2789.625  118.94109 CytoTrol_CytoTrol_1.fcs
    #> 35: 2849.592   69.94327 CytoTrol_CytoTrol_1.fcs
    #> 36: 2912.462   37.33437 CytoTrol_CytoTrol_1.fcs
    #> 37: 2977.202   21.64985 CytoTrol_CytoTrol_1.fcs
    #> 38: 3042.749   23.14723 CytoTrol_CytoTrol_1.fcs
    #> 39: 3108.026   41.80193 CytoTrol_CytoTrol_1.fcs
    #> 40: 3171.962   77.30765 CytoTrol_CytoTrol_1.fcs
    #> 41: 3233.507  129.08138 CytoTrol_CytoTrol_1.fcs
    #> 42: 3291.651  196.27299 CytoTrol_CytoTrol_1.fcs
    #> 43: 3345.438  277.77920 CytoTrol_CytoTrol_1.fcs
    #> 44: 3393.986  372.26168 CytoTrol_CytoTrol_1.fcs
    #> 45: 3436.497  478.16904 CytoTrol_CytoTrol_1.fcs
    #> 46: 3472.273  593.76227 CytoTrol_CytoTrol_1.fcs
    #> 47: 3500.728  717.14334 CytoTrol_CytoTrol_1.fcs
    #> 48: 3521.393  846.28634 CytoTrol_CytoTrol_1.fcs
    #> 49: 3533.929  979.07073 CytoTrol_CytoTrol_1.fcs
    #> 50: 3538.131 1113.31621 CytoTrol_CytoTrol_1.fcs
    #> 51: 3538.131 1113.31621 CytoTrol_CytoTrol_1.fcs
    #>     <B710-A>   <R780-A>               .rownames