1 2 I'm trying to develop a multiplot heatmap.2 saved to a pdf. I'm having some success but the axis labels are getting chopped off. Subplot titles are also desirable but again the labels are getting chopped. Here's my reproducible code: library(gridExtra) library(grid) library(gridGraphics) library(gplots) Col = colorRampPalette(c("red","orange","yellow", "white")) grab_grob <- function() grid.echo() grid.grab() par(cex.main=0.1, mar = c(1,1,1,1) ) #data<-read.table("heatmap.input.matrix.data.txt") lmat = rbind(c(2,3),c(4,1),c(4,1)) lwid = c(2.5,4) lhei = c(0.5,4,3) labRowvec <- c(rep(NULL, dim(matrix(runif(1000, 1,10),ncol=50))[1])) labColvec <- c(rep(NULL, dim(matrix(runif(1000, 1,10),ncol=50))[2])) gl <- lapply(1:12, function(i) heatmap.2(matrix(runif(1000, 1,10),ncol=50), dendrogram = "none",offsetRow=-0.5, offsetCol=-1,srtCol=0, density="density", lmat =lmat,lhei = l
(function() {
var items = ['id': '1820485000595883525', 'body': 'GOOD POST..Thanks for the post', 'timestamp': '1381803403110', 'permalink': 'https://www.mybloggertricks.com/2013/10/how-to-manage-blogger-labels.html?showCommentx3d1381803403110#c1820485000595883525', 'author': 'name': 'Prakash Srinad', 'avatarUrl': '//lh3.googleusercontent.com/zFdxGE77vvD2w5xHy6jkVuElKv-U9_9qLkRYK8OnbDeJPtjSZ82UPq5w6hJ-SAx3ds35', 'profileUrl': 'https://www.blogger.com/profile/01491835587823530774', 'displayTime': 'Oct 15, 2013, 7:16:00 AM', 'deleteclass': 'item-control blog-admin pid-2026371147', 'id': '8031023390606954656', 'body': 'Thanks MBT 4sharing this tip.', 'timestamp': '1381949724010', 'permalink': 'https://www.mybloggertricks.com/2013/10/how-to-manage-blogger-labels.html?showCommentx3d1381949724010#c8031023390606954656', 'author': 'name': 'Brainwork', 'avatarUrl': '//lh3.googleusercontent.com/zFdxGE77vvD2w5xHy6jkVuElKv-U9_9qLkRYK8OnbDeJPtjSZ82UPq5w6hJ-SAx3ds35', 'profileUrl': 'https://www.blogger.com/profile/17264998789692393763', 'displayTime': 'Oct 16, 2013, 11:55:00 PM', 'deleteclass': 'item-control blog-admin pid-183186740', 'id': '8946474899648855350', 'body': 'Dear Qasim,x3cbr /x3ex3cbr /x3eI need your help very urgently. Please open my blog once www.tallyssolution.blogspot.com. Before a week my blog is not show wishlink ad on my blog. But now it is appear automatically. Please suggest how can i remove this ad. Because i am too much tired to see this ad. It is automatically appear on my blog, i do not enter any code of this script. Please help me.x3cbr /x3ex3cbr /x3eThanks in advance', 'timestamp': '1382691887384', 'permalink': 'https://www.mybloggertricks.com/2013/10/how-to-manage-blogger-labels.html?showCommentx3d1382691887384#c8946474899648855350', 'author': 'name': 'Sumit Kumar Gogawat', 'avatarUrl': '//lh5.googleusercontent.com/-4snKfA_34yU/AAAAAAAAAAI/AAAAAAAABRM/xksQTabnPoA/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/17138058195183452291', 'displayTime': 'Oct 25, 2013, 2:04:00 PM', 'deleteclass': 'item-control blog-admin pid-805245956', 'id': '4269897036059309624', 'body': 'Hi Qasim, Ix26#39;ve deleted label which shows details of blog each month and year, (the original label generate by blogger) how can I get it back? Thanks', 'timestamp': '1383686401427', 'permalink': 'https://www.mybloggertricks.com/2013/10/how-to-manage-blogger-labels.html?showCommentx3d1383686401427#c4269897036059309624', 'author': 'name': 'Helen Lai', 'avatarUrl': '//lh6.googleusercontent.com/-tmqsXx2rNjE/AAAAAAAAAAI/AAAAAAAAFrA/TcjuyIq-_-U/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/03110936239849421246', 'displayTime': 'Nov 6, 2013, 2:20:00 AM', 'deleteclass': 'item-control blog-admin pid-241293961', 'id': '2495345088244561740', 'body': 'Thank you for this article.x3cbr /x3eI was looking for a trick to delete some labels on my blog: http://onzyme.blogspot.com ..what i did finally is to modify the widget of labels..and I deselect unusful ones', 'timestamp': '1406526838896', 'permalink': 'https://www.mybloggertricks.com/2013/10/how-to-manage-blogger-labels.html?showCommentx3d1406526838896#c2495345088244561740', 'author': 'name': 'محمد أونزيم', 'avatarUrl': '//lh6.googleusercontent.com/-wJnNMM_3SnI/AAAAAAAAAAI/AAAAAAAABIg/Ntqfk5JHRng/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/04662985468683986301', 'displayTime': 'Jul 28, 2014, 10:53:00 AM', 'deleteclass': 'item-control blog-admin pid-1854249979', 'id': '630862922050979054', 'body': 'Hi, Ix26#39;m familiar with using label on posts. What I would like is help with offering contributors to my blog the opportunity to add labels to comments as this would allow other users to search comments based on comment labels in addition to post labels. x3cbr /x3eAlso, while ix26#39;m at it, can I give contributors the opportunity to x26#39;postx26#39; as opposed to x26#39;commentx26#39; this would get over my problem. I would still want x26#39;moderatex26#39; function on their postsx26#39;x3cbr /x3eThanks', 'timestamp': '1412857415513', 'permalink': 'https://www.mybloggertricks.com/2013/10/how-to-manage-blogger-labels.html?showCommentx3d1412857415513#c630862922050979054', 'author': 'name': 'Jackx26#39;s Bucket List', 'avatarUrl': 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6z62BL2zpypVEIq6aDe3e5f8MuWfXB-orW0llbYzmr3qNfxxnjVhHXhAgAG6tsIQR6dplFO7LvMl_O7nGvDboFgVAkUAtFMYPeAC6_pJQGnN37tH1PFADmAt-lG9lYJLXbmk_qL99ftM/s35/DSC_0961.JPG', 'profileUrl': 'https://www.blogger.com/profile/02638809546876715274', 'displayTime': 'Oct 9, 2014, 5:23:00 PM', 'deleteclass': 'item-control blog-admin pid-1002623283', 'id': '6952035602090547858', 'body': 'Finally I got solutions for managing label', 'timestamp': '1435536295642', 'permalink': 'https://www.mybloggertricks.com/2013/10/how-to-manage-blogger-labels.html?showCommentx3d1435536295642#c6952035602090547858', 'author': 'name': 'Phagu Mahato', 'avatarUrl': '//lh3.googleusercontent.com/-fwFYKGrm_0Q/AAAAAAAAAAI/AAAAAAAACGQ/Y95xYHYWYcE/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/06272608659750586169', 'displayTime': 'Jun 29, 2015, 5:04:00 AM', 'deleteclass': 'item-control blog-admin pid-479652539', 'id': '1712341331390545545', 'body': 'good information for new bloggers thank you,..', 'timestamp': '1467652762504', 'permalink': 'https://www.mybloggertricks.com/2013/10/how-to-manage-blogger-labels.html?showCommentx3d1467652762504#c1712341331390545545', 'author': 'name': 'karthik goud', 'avatarUrl': '//lh3.googleusercontent.com/zFdxGE77vvD2w5xHy6jkVuElKv-U9_9qLkRYK8OnbDeJPtjSZ82UPq5w6hJ-SAx3ds35', 'profileUrl': 'https://www.blogger.com/profile/14031855579487702321', 'displayTime': 'Jul 4, 2016, 10:19:00 PM', 'deleteclass': 'item-control blog-admin pid-566272573', 'id': '1846366173797660517', 'body': 'Thanks', 'timestamp': '1475384748100', 'permalink': 'https://www.mybloggertricks.com/2013/10/how-to-manage-blogger-labels.html?showCommentx3d1475384748100#c1846366173797660517', 'author': 'name': 'Ali Abdulmumeen', 'avatarUrl': '//lh3.googleusercontent.com/zFdxGE77vvD2w5xHy6jkVuElKv-U9_9qLkRYK8OnbDeJPtjSZ82UPq5w6hJ-SAx3ds35', 'profileUrl': 'https://www.blogger.com/profile/09207475298842658103', 'displayTime': 'Oct 2, 2016, 10:05:00 AM', 'deleteclass': 'item-control blog-admin pid-1130490490', 'id': '8360055235971359577', 'body': 'Really cool', 'timestamp': '1477985853799', 'permalink': 'https://www.mybloggertricks.com/2013/10/how-to-manage-blogger-labels.html?showCommentx3d1477985853799#c8360055235971359577', 'author': 'name': 'Godwin Maga', 'avatarUrl': '//lh3.googleusercontent.com/-cnjcf28foXA/AAAAAAAAAAI/AAAAAAAAAI4/b1qCXuLi--E/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/03041809099021271381', 'displayTime': 'Nov 1, 2016, 12:37:00 PM', 'deleteclass': 'item-control blog-admin pid-146426322', 'id': '9011108113816604910', 'body': 'I want to replace links (in dynamic template of blogger) with my own custom categories.. Please suggest', 'timestamp': '1478418533087', 'permalink': 'https://www.mybloggertricks.com/2013/10/how-to-manage-blogger-labels.html?showCommentx3d1478418533087#c9011108113816604910', 'author': 'name': 'Black Stone', 'avatarUrl': '//lh3.googleusercontent.com/zFdxGE77vvD2w5xHy6jkVuElKv-U9_9qLkRYK8OnbDeJPtjSZ82UPq5w6hJ-SAx3ds35', 'profileUrl': 'https://www.blogger.com/profile/07716594004112980450', 'displayTime': 'Nov 6, 2016, 12:48:00 PM', 'deleteclass': 'item-control blog-admin pid-182366649', 'id': '1217068175759150991', 'body': 'Thanks very much for that help regarding Blogger labels. It is appreciated as is your time for sharing that knowledge.', 'timestamp': '1489276314881', 'permalink': 'https://www.mybloggertricks.com/2013/10/how-to-manage-blogger-labels.html?showCommentx3d1489276314881#c1217068175759150991', 'author': 'name': 'Mary Dixon', 'avatarUrl': '//lh5.googleusercontent.com/-HO6mu1s2_B8/AAAAAAAAAAI/AAAAAAABGoI/i_OE14viaAk/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/10484536458868398746', 'displayTime': 'Mar 12, 2017, 4:51:00 AM', 'deleteclass': 'item-control blog-admin pid-2126714472'];
var msgs = 'loadMore': 'Load more...', 'loading': 'Loading...', 'loaded': 'No more!', 'addComment': 'Add comment', 'reply': 'Reply', 'delete': 'Delete';
var config = 'blogId': '8193278726666811965', 'postId': '2321508886846473930', 'feed': 'https://www.mybloggertricks.com/feeds/2321508886846473930/comments/default', 'authorName': 'Qasim Zaib', 'authorUrl': 'https://www.blogger.com/profile/08938578237404814539', 'baseUri': 'https://www.blogger.com', 'maxThreadDepth': 2;
// 0)
cursor = parseInt(items[items.length - 1].timestamp) + 1;
var bodyFromEntry = function(entry)
if (entry.gd$extendedProperty)
for (var k in entry.gd$extendedProperty)
if (entry.gd$extendedProperty[k].name == 'blogger.contentRemoved')
return '' + entry.content.$t + '';
return entry.content.$t;
var parse = function(data)
cursor = null;
var comments = ;
if (data && data.feed && data.feed.entry)
for (var i = 0, entry; entry = data.feed.entry[i]; i++)
var comment = ;
// comment ID, parsed out of the original id format
var id = /blog-(d+).post-(d+)/.exec(entry.id.$t);
comment.id = id ? id[2] : null;
comment.body = bodyFromEntry(entry);
comment.timestamp = Date.parse(entry.published.$t) + '';
if (entry.author && entry.author.constructor === Array)
var auth = entry.author[0];
if (auth)
comment.author =
name: (auth.name ? auth.name.$t : undefined),
profileUrl: (auth.uri ? auth.uri.$t : undefined),
avatarUrl: (auth.gd$image ? auth.gd$image.src : undefined)
;
if (entry.link)
if (entry.link[2])
comment.link = comment.permalink = entry.link[2].href;
if (entry.link[3])
var pid = /.*comments/default/(d+)?.*/.exec(entry.link[3].href);
if (pid && pid[1])
comment.parentId = pid[1];
comment.deleteclass = 'item-control blog-admin';
if (entry.gd$extendedProperty)
for (var k in entry.gd$extendedProperty)
if (entry.gd$extendedProperty[k].name == 'blogger.itemClass')
comment.deleteclass += ' ' + entry.gd$extendedProperty[k].value;
else if (entry.gd$extendedProperty[k].name == 'blogger.displayTime')
comment.displayTime = entry.gd$extendedProperty[k].value;
comments.push(comment);
return comments;
;
var paginator = function(callback) {
if (hasMore()) {
var url = config.feed + '?alt=json&v=2&orderby=published&reverse=false&max-results=50';
if (cursor)
url += '&published-min=' + new Date(cursor).toISOString();
window.bloggercomments = function(data) {
var parsed = parse(data);
cursor = parsed.length
Prakash SrinadOct 15, 2013, 7:16:00 AM
GOOD POST..Thanks for the post
ReplyDelete
BrainworkOct 16, 2013, 11:55:00 PM
Thanks MBT 4sharing this tip.
ReplyDelete
Sumit Kumar GogawatOct 25, 2013, 2:04:00 PM
Dear Qasim,
I need your help very urgently. Please open my blog once www.tallyssolution.blogspot.com. Before a week my blog is not show wishlink ad on my blog. But now it is appear automatically. Please suggest how can i remove this ad. Because i am too much tired to see this ad. It is automatically appear on my blog, i do not enter any code of this script. Please help me.
Thanks in advance
ReplyDelete
Helen LaiNov 6, 2013, 2:20:00 AM
Hi Qasim, I've deleted label which shows details of blog each month and year, (the original label generate by blogger) how can I get it back? Thanks
ReplyDelete
محمد أونزيمJul 28, 2014, 10:53:00 AM
Thank you for this article.
I was looking for a trick to delete some labels on my blog: http://onzyme.blogspot.com ..what i did finally is to modify the widget of labels..and I deselect unusful ones
ReplyDelete
Jack's Bucket ListOct 9, 2014, 5:23:00 PM
Hi, I'm familiar with using label on posts. What I would like is help with offering contributors to my blog the opportunity to add labels to comments as this would allow other users to search comments based on comment labels in addition to post labels.
Also, while i'm at it, can I give contributors the opportunity to 'post' as opposed to 'comment' this would get over my problem. I would still want 'moderate' function on their posts'
Thanks
ReplyDelete
Phagu MahatoJun 29, 2015, 5:04:00 AM
Finally I got solutions for managing label
ReplyDelete
karthik goudJul 4, 2016, 10:19:00 PM
good information for new bloggers thank you,..
ReplyDelete
Ali AbdulmumeenOct 2, 2016, 10:05:00 AM
Thanks
ReplyDelete
Godwin MagaNov 1, 2016, 12:37:00 PM
Really cool
ReplyDelete
Black StoneNov 6, 2016, 12:48:00 PM
I want to replace links (in dynamic template of blogger) with my own custom categories.. Please suggest
ReplyDelete
Mary DixonMar 12, 2017, 4:51:00 AM
Thanks very much for that help regarding Blogger labels. It is appreciated as is your time for sharing that knowledge.
ReplyDelete