ggseg / ggsegDefaultExtra

https://lcbc-uio.github.io/ggsegDefaultExtra/
Other
2 stars 0 forks source link

Issues ggsegDefaultExtra #1

Open aliceballerini opened 4 years ago

aliceballerini commented 4 years ago

Hi Dr. Mowinckel, recently I've update R to 4.0.2 version (2020-06-22), after that I've got some problems with ggsegDefaultExtra. Take a look at the output:

ggseg(atlas = dkextra, mapping = aes(fill = region)) + scale_fill_brain("dk") + theme(legend.position = "bottom" , legend.text = element_text(size = 7)) + guides(fill = guide_legend(ncol = 3)) Error in as_ggseg_atlas(geobrain) : There are missing necessary columns in the data.frame for it to be a ggseg_atlas: '.subid' Warning message: In ggseg(atlas = dkextra, mapping = aes(fill = region)) : This is not a ggseg_atlas-class. Attempting to convert with as_ggseg_atlas()

I tried to disintall and reinstall the package unsuccesfully. What's your advise about that?

drmowinckels commented 4 years ago

Hi!

Thank you for flagging this and sorry for the late reply (I have been on holidays).

I just pushed a fix to this error to github, so if you install the package again you should be able to plot the data.

library(ggseg)
#> Loading required package: ggplot2
library(ggsegDefaultExtra)

ggseg(atlas = dkextra, mapping = aes(fill = region)) + 
  scale_fill_brain("dk") + 
  theme(legend.position = "bottom" , legend.text = element_text(size = 7)) + 
  guides(fill = guide_legend(ncol = 3))

Created on 2020-08-10 by the reprex package (v0.3.0)