Mouse-Imaging-Centre / MRIcrotome

R package for MRI data visualization
3 stars 1 forks source link

Control side placement of addtitle? #16

Open gdevenyi opened 4 years ago

gdevenyi commented 4 years ago

In the example vignette the addtitle on row layout adds the titles on the left.

In my test code, they're added on the right:

sliceSeries(nrow = 1, ncol= 5, begin = 25 + 20, end = 298 - 10, dimension = 2) %>%  
  anatomy(anatVol, low=1, high=5.9) %>%
  addtitle("Coronal") %>%
  overlay(mincArray(model, predictor),
    low=round(thresholds["0.05",predictor],digits=2), 
    high=round(thresholds["0.01",predictor],digits=2), 
    symmetric = T, alpha=0.6) %>%    
  sliceSeries(nrow = 1, ncol= 5, begin = 24 + 15, end = 246 - 10, dimension = 1) %>%  
  anatomy(anatVol, low=1, high=5.9) %>%
  addtitle("Sagittal") %>%
  overlay(mincArray(model, predictor),   
    low=round(thresholds["0.05",predictor],digits=2),
    high=round(thresholds["0.01",predictor],digits=2),
    symmetric = T, alpha=0.6) %>%
  sliceSeries(nrow = 1, ncol= 5, begin = 32 + 30, end = 252 - 20, dimension = 3) %>% 
  anatomy(anatVol, low=1, high=5.9) %>%
  addtitle("Axial") %>%
  overlay(mincArray(model, predictor),
    low=round(thresholds["0.05",predictor],digits=2),
    high=round(thresholds["0.01",predictor],digits=2),
    symmetric = T, alpha=0.6) %>%   
  legend(predictor) %>%
  draw(layout = "row")

Is there control for this? image