Browse code

revised the messages

Zuguang Gu authored on 01/11/2020 08:44:36
Showing2 changed files

... ...
@@ -4,6 +4,7 @@ CHANGES in VERSION 2.7.1
4 4
   full sets of combination sets.
5 5
 * adjust the space of column title according to ggplot2.
6 6
 * `Legend()`: for title_position == "lefttop", the title position is adjusted.
7
+* Legends are automatically adjusted according to the device size when resizing the device.
7 8
 
8 9
 ========================
9 10
 
... ...
@@ -3398,7 +3398,7 @@ anno_zoom = function(align_to, panel_fun = function(index, nm = NULL) { grid.rec
3398 3398
 
3399 3399
 		if(is_RStudio_current_dev()) {
3400 3400
 			if(ht_opt$message) {
3401
-				message_wrap("It seems you are using RStudio IDE. `anno_zoom()` needs to work with the physical size of the graphics device. It only generates correct plot in the figure panel, while in the zoomed plot (by clicking the icon 'Zoom') or in the exported plot (by clicking the icon 'Export'), the connection to heatmap rows/columns might be wrong. You can directly use e.g. pdf() to save the plot into a file.\n\nUse `ht_opt$message = FALSE` to turn off this message.")
3401
+				message_wrap("It seems you are using RStudio IDE. `anno_zoom()`/`anno_link()` needs to work with the physical size of the graphics device. It only generates correct plot in the figure panel, while in the zoomed plot (by clicking the icon 'Zoom') or in the exported plot (by clicking the icon 'Export'), the connection to heatmap rows/columns might be wrong. You can directly use e.g. pdf() to save the plot into a file.\n\nUse `ht_opt$message = FALSE` to turn off this message.")
3402 3402
 			}
3403 3403
 		}
3404 3404
 
... ...
@@ -3585,7 +3585,7 @@ anno_zoom = function(align_to, panel_fun = function(index, nm = NULL) { grid.rec
3585 3585
 
3586 3586
 		if(is_RStudio_current_dev()) {
3587 3587
 			if(ht_opt$message) {
3588
-				message_wrap("It seems you are using RStudio IDE. `anno_zoom()` needs to work with the physical size of the graphics device. It only generates correct plot in the figure panel, while in the zoomed plot (by clicking the icon 'Zoom') or in the exported plot (by clicking the icon 'Export'), the connection to heatmap rows/columns might be wrong. You can directly use e.g. pdf() to save the plot into a file.\n\nUse `ht_opt$message = FALSE` to turn off this message.")
3588
+				message_wrap("It seems you are using RStudio IDE. `anno_zoom()`/`anno_link()` needs to work with the physical size of the graphics device. It only generates correct plot in the figure panel, while in the zoomed plot (by clicking the icon 'Zoom') or in the exported plot (by clicking the icon 'Export'), the connection to heatmap rows/columns might be wrong. You can directly use e.g. pdf() to save the plot into a file.\n\nUse `ht_opt$message = FALSE` to turn off this message.")
3589 3589
 			}
3590 3590
 		}
3591 3591