# Requires the igraph package to be installed.
data(car)
nb <- nb('class', car)
nb <- nb('class', car)
if (FALSE) plot(nb)
if (FALSE) plot(nb, fontsize = 20)
if (FALSE) plot(nb, layoutType = 'circo')
if (FALSE) plot(nb, layoutType = 'fdp')
if (FALSE) plot(nb, layoutType = 'osage')
if (FALSE) plot(nb, layoutType = 'twopi')
if (FALSE) plot(nb, layoutType = 'neato')
Run the code above in your browser using DataLab