All of loon's displays have plot states. Plot states specify what is displayed, how it is displayed and if and how the plot is linked with other loon plots. Layers, glyphs, navigators and contexts have states too (also refered to as plot states). This function queries a single plot state.
Examples
if(interactive()){
p <- l_plot(iris, color = iris$Species)
l_cget(p, "color")
p['selected']
}