igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[igraph] Can't control vertex.size when plotting over geographic map


From: Elliot Meador
Subject: [igraph] Can't control vertex.size when plotting over geographic map
Date: Wed, 11 Jul 2018 18:45:33 +0000

Hello, 

I'm new to the igraph help-list, so please excuse any violations of norms.

For some reason, I cannot control the vertex size attribute when I plot an igraph object over a map. 

Specifically, I think the issue lies with the plot parameter: rescale = FALSE.

# Here is my code
par(mar = c(1,0,1,0))
plot(great_britian_boundary, col = 'grey', border = 'grey') #produces a base map

# edges 
E(g)$color <- 'black'
E(g)$arrow.size <- .25
E(g)$lty <- 2
E(g)$size <- 1.75


# vertices
V(g)$label <- NA
V(g)$color <- 'black'
V(g)$size <- 15 # setting vertex size, but does not show up in plot

plot(g, layout = g_locations, rescale = F,add = TRUE, # adds the igraph
     xlim = c(5512.999, 655644.8),
     ylim = c(5337.901, 1220301.5))#


This produces, this image

par(mar = c(1,0,1,0))
plot(great_britian_boundary, col = 'grey', border = 'grey')

# edges 
E(g)$color <- 'black'
E(g)$arrow.size <- .25
E(g)$lty <- 2
E(g)$size <- 1.75


# vertices
V(g)$label <- NA
V(g)$color <- 'black'
V(g)$size <- 15

plot(g, layout = g_locations, rescale = F,add = TRUE,
     xlim = c(5512.999, 655644.8),
     ylim = c(5337.901, 1220301.5))#

par(mar = c(1,0,1,0))
plot(great_britian_boundary, col = 'grey', border = 'grey')

# edges 
E(g)$color <- 'black'
E(g)$arrow.size <- .25
E(g)$lty <- 2
E(g)$size <- 1.75


# vertices
V(g)$label <- NA
V(g)$color <- 'black'
V(g)$size <- 15

plot(g, layout = g_locations, rescale = F,add = TRUE,
     xlim = c(5512.999, 655644.8),
     ylim = c(5337.901, 1220301.5))#



Is there somehow I can control the graph plot attributes in a similar way to when rescale is set to FALSE?

Thanks, 

Elliot

Please don't print this e-mail unless you really need to.

This e-mail message is confidential to the intended recipient at the email address to which it has been addressed. If the message has been received by you in error, it may not be disclosed to or used by anyone other than the intended addressee, nor may it be copied in any way. If it is not intended for you please inform us, immediately, then delete it from your system. If the content is not about the business of the organisation then the message is not from us nor is it sanctioned by us. Anything in this e-mail or its attachments which does not relate to SRUC's or SAC Commercial Limited's official business is neither given nor endorsed by SRUC or SAC Commercial Limited.

SRUC
A Charitable company limited by guarantee, Scottish Charity Number: SC003712.
Registered in Scotland, Company Number: SC103046 - Registered Office: Peter Wilson Building, King’s Buildings, West Mains Road, Edinburgh EH9 3JG
SAC Commercial Limited, an SRUC company
Registered in Scotland, Company Number: SC148684 - Registered Office: Peter Wilson Building, King’s Buildings, West Mains Road, Edinburgh EH9 3JG


reply via email to

[Prev in Thread] Current Thread [Next in Thread]