is.mg tests whether an object inherits from a modelglyphs class. Such objects should all contain a data set with a gid variable and have the following attributes: model_info, key, x_major, y_major.
1  |   is.mg(x)
 | 
x | 
 An object to be tested for membership in a modelglyphs class  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.