"Unused Argument" error while plotting legends

844 views
Skip to first unread message

Utpal Smart

unread,
Feb 4, 2016, 7:58:43 PM2/4/16
to BioGeoBEARS

Hi Nick,


It's me again. I have been able to run all the analyses without a hitch with my own data-set. However, I have hit a roadblock while plotting the legend; when I hit -   grid.table(keydf2, show.rownames=FALSE).
 I get the following error -
Error in gtable_table(d, name = "core", fg_params = theme$core$fg_params,  : 
  unused argument (show.rownames = FALSE)

I also get a similar error further down while trying to run : colors_list_for_states = mix_colors_for_states(colors_matrix, states_list_0based_index, exclude_null=(include_null_range==TRUE))
The error says :
Error in mix_colors_for_states(colors_matrix, states_list_0based_index, : unused argument (exclude_null = (include_null_range == TRUE))

Having scanned through all the relevant posts on the group, I think its probably a library issue (?) but I have double checked and seem to have all the relevant libraries installed and active. Any thoughts?

Really appreciate your time...


cheers,

Nick Matzke

unread,
Feb 4, 2016, 8:29:08 PM2/4/16
to bioge...@googlegroups.com
Hi Utpal,


On Fri, Feb 5, 2016 at 11:58 AM, Utpal Smart <utpal...@gmail.com> wrote:

Hi Nick,


It's me again. I have been able to run all the analyses without a hitch with my own data-set. However, I have hit a roadblock while plotting the legend; when I hit -   grid.table(keydf2, show.rownames=FALSE).
 I get the following error -
Error in gtable_table(d, name = "core", fg_params = theme$core$fg_params,  : 
  unused argument (show.rownames = FALSE)


I now get this error too. It looks like they've changed something in the grid.table function.  It works now, if you change from:

grid.table(keydf2, show.rownames=FALSE)

...to...

grid.table(keydf2, rows=NULL)

I've changed this now in the legend script at:



 

I also get a similar error further down while trying to run : colors_list_for_states = mix_colors_for_states(colors_matrix, states_list_0based_index, exclude_null=(include_null_range==TRUE))
The error says :
Error in mix_colors_for_states(colors_matrix, states_list_0based_index, : unused argument (exclude_null = (include_null_range == TRUE))

Having scanned through all the relevant posts on the group, I think its probably a library issue (?) but I have double checked and seem to have all the relevant libraries installed and active. Any thoughts?


I don't see "exclude_null" in the legends example script here:

...so you are probably looking at some older script somewhere. I just ran the Psychotria script, and then the legend script at:

...and it works...

Cheers!
Nick


 

Really appreciate your time...


cheers,

--
You received this message because you are subscribed to the Google Groups "BioGeoBEARS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to biogeobears...@googlegroups.com.
To post to this group, send email to bioge...@googlegroups.com.
Visit this group at https://groups.google.com/group/biogeobears.
To view this discussion on the web visit https://groups.google.com/d/msgid/biogeobears/cebef060-fb23-4085-b770-9836607a96be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages