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': '2772704742626729191', 'body': 'Hello Mohammad,x3cbr /x3ex3cbr /x3eThanks for one more amazing post.x3cbr /x3ex3cbr /x3eI saw the demo and it really looks cool. The horizontal was also cool and this one is damm cool.x3cbr /x3ex3cbr /x3eSo thanks for sharing this plugin. Ix26#39;m definitely going to implement this on my blog :)x3cbr /x3ex3cbr /x3eWell Mohammad I must say one donx26#39;t ask for giveaway on MBT as each and every post is like give away (just a thought).x3cbr /x3ex3cbr /x3eThanks once again,x3cbr /x3ePiyush :) ', 'timestamp': '1467655191344', 'permalink': 'https://www.mybloggertricks.com/2016/07/vertical-slider-for-blogger.html?showCommentx3d1467655191344#c2772704742626729191', 'author': 'name': 'piyush golani', 'avatarUrl': '//lh4.googleusercontent.com/-d_N27eSZPxY/AAAAAAAAAAI/AAAAAAAADYE/dfjiLiYSItw/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/15624712984099396457', 'displayTime': 'Jul 4, 2016, 10:59:00 PM', 'deleteclass': 'item-control blog-admin pid-1854785510', 'id': '3913722621700471951', 'parentId': '2772704742626729191', 'body': 'Hi Piyushx3cbr /x3ex3cbr /x3eThat was surely a precious feedback buddy and it is the only thing that helps me keep spreading knowledge. Thank you a lot for the nice words. This surely means a lot.x3cbr /x3ex3cbr /x3eA lot of more useful widgets are on its way. x3cbr /x3ex3cbr /x3eHappy Eid Mubarak buddy! x3d)', 'timestamp': '1467753659344', 'permalink': 'https://www.mybloggertricks.com/2016/07/vertical-slider-for-blogger.html?showCommentx3d1467753659344#c3913722621700471951', 'author': 'name': 'Mohammad Mustafa Ahmedzai', 'avatarUrl': '//lh4.googleusercontent.com/-f8qSqNLtpBU/AAAAAAAAAAI/AAAAAAAAQeo/f7nmpa1_dQ0/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/11681339458447132019', 'displayTime': 'Jul 6, 2016, 2:20:00 AM', 'deleteclass': 'item-control blog-admin pid-1736397285', 'id': '3689745823449016439', 'body': 'Nice Post,x3cbr /x3ex3cbr /x3eIx26#39;m searching for this from long time and got here easily. Just want to say big thanks to you. x3cbr /x3ex3cbr /x3e~Prakash', 'timestamp': '1467782607839', 'permalink': 'https://www.mybloggertricks.com/2016/07/vertical-slider-for-blogger.html?showCommentx3d1467782607839#c3689745823449016439', 'author': 'name': 'Prakash Kumar Nirala', 'avatarUrl': '//lh3.googleusercontent.com/-n-fbEZAA2Qc/AAAAAAAAAAI/AAAAAAAAAp0/Byw8ZPMh2Og/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/13411649622995660220', 'displayTime': 'Jul 6, 2016, 10:23:00 AM', 'deleteclass': 'item-control blog-admin pid-332266171', 'id': '8320191374774458402', 'body': 'hello handsome ,x3cbr /x3ehuwa huwa huwa its working body :)thanx yar its really working i am happy to do that its first difficult work for me to do that ..x3cbr /x3ebut the good thing is its working i am so happy to do that :) x3cbr /x3ei ll read your post now daily for my poor blog .. x3cbr /x3ethank you very much ..x3cbr /x3e', 'timestamp': '1468297888706', 'permalink': 'https://www.mybloggertricks.com/2016/07/vertical-slider-for-blogger.html?showCommentx3d1468297888706#c8320191374774458402', 'author': 'name': 'sulman qamar', 'avatarUrl': '//lh5.googleusercontent.com/-NoKv0HKq4fI/AAAAAAAAAAI/AAAAAAAABGw/c6aK1Rj0AGg/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/04835065763043926203', 'displayTime': 'Jul 12, 2016, 9:31:00 AM', 'deleteclass': 'item-control blog-admin pid-503542297', 'id': '5750002587647824956', 'body': 'Hi Ahmedzai,x3cbr /x3eIx26#39;m go through your article thatx26#39;s plugin really work :) x3cbr /x3eIx26#39;m new in that field Ix26#39;m follow most of your teaching inshallah soon i ll like you :) x3cbr /x3etry to share most valuable information like that .. x3cbr /x3e~salman qamar ', 'timestamp': '1468426183612', 'permalink': 'https://www.mybloggertricks.com/2016/07/vertical-slider-for-blogger.html?showCommentx3d1468426183612#c5750002587647824956', 'author': 'name': 'sulman qamar', 'avatarUrl': '//lh5.googleusercontent.com/-NoKv0HKq4fI/AAAAAAAAAAI/AAAAAAAABGw/c6aK1Rj0AGg/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/04835065763043926203', 'displayTime': 'Jul 13, 2016, 9:09:00 PM', 'deleteclass': 'item-control blog-admin pid-503542297', 'id': '4931590662430147525', 'body': 'Thanks so much! Ix26#39;ve already used your recent comments and random posts widgets. I tried this one too, and it seems to work fine except it is not sliding. I have the listcount as 12 and animation as x26quot;slidex26quot;. Do you know what I might have gotten wrong? Ix26#39;m fine with it not sliding, though, if therex26#39;s nothing I can do. :) Thanks again!', 'timestamp': '1478884823813', 'permalink': 'https://www.mybloggertricks.com/2016/07/vertical-slider-for-blogger.html?showCommentx3d1478884823813#c4931590662430147525', 'author': 'name': 'Silas Emmanuel', 'avatarUrl': 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmEgPa_bMpsnlDSojS2IBXlbUVZ36-HOLYrSTfcbYkllowkU5GT21VXlNXES-BpZZbNW-LGN7CTBvkjpD-gN1_lsh6eNHxLH8RlxdB3eAcCb3I2PbZjZsdmxzt1yEENGfQCxgWLJr_Lq2R/s35/Prophile%25252BPic%25252Banimated.gif', 'profileUrl': 'https://www.blogger.com/profile/11316934210661640992', 'displayTime': 'Nov 11, 2016, 10:20:00 PM', 'deleteclass': 'item-control blog-admin pid-541439665', 'id': '2449938617266698195', 'body': 'Of course, right after I ask for help, I see what I did wrong. :) I fixed it now, so nevermind. :) Thanks.', 'timestamp': '1478885071098', 'permalink': 'https://www.mybloggertricks.com/2016/07/vertical-slider-for-blogger.html?showCommentx3d1478885071098#c2449938617266698195', 'author': 'name': 'Silas Emmanuel', 'avatarUrl': 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmEgPa_bMpsnlDSojS2IBXlbUVZ36-HOLYrSTfcbYkllowkU5GT21VXlNXES-BpZZbNW-LGN7CTBvkjpD-gN1_lsh6eNHxLH8RlxdB3eAcCb3I2PbZjZsdmxzt1yEENGfQCxgWLJr_Lq2R/s35/Prophile%25252BPic%25252Banimated.gif', 'profileUrl': 'https://www.blogger.com/profile/11316934210661640992', 'displayTime': 'Nov 11, 2016, 10:24:00 PM', 'deleteclass': 'item-control blog-admin pid-541439665', 'id': '4571517483155138472', 'body': 'If the widget does not work for you please replace your jQuery link with this one:x3cbr /x3ex3cbr /x3ex26lt;script typex3dx26quot;text/javascriptx26quot; srcx3dx26quot;http://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.jsx26quot;x26gt;x26lt;/scriptx26gt; ', 'timestamp': '1481568033227', 'permalink': 'https://www.mybloggertricks.com/2016/07/vertical-slider-for-blogger.html?showCommentx3d1481568033227#c4571517483155138472', 'author': 'name': 'Mohammad Mustafa Ahmedzai', 'avatarUrl': '//lh4.googleusercontent.com/-f8qSqNLtpBU/AAAAAAAAAAI/AAAAAAAAQeo/f7nmpa1_dQ0/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/11681339458447132019', 'displayTime': 'Dec 12, 2016, 11:40:00 PM', 'deleteclass': 'item-control blog-admin pid-1736397285', 'id': '7367120326262125089', 'body': 'I can not get the slider to retreive posts from my blog. I have replaced the url as noted. What do I need to do? Ix26#39;m using a domain to mask the blogspot url. Which url do I use? Could Ix26#39;ve tried both and neither pull up posts. Thank you', 'timestamp': '1500160712075', 'permalink': 'https://www.mybloggertricks.com/2016/07/vertical-slider-for-blogger.html?showCommentx3d1500160712075#c7367120326262125089', 'author': 'name': 'Danita', 'avatarUrl': '//lh3.googleusercontent.com/zFdxGE77vvD2w5xHy6jkVuElKv-U9_9qLkRYK8OnbDeJPtjSZ82UPq5w6hJ-SAx3ds35', 'profileUrl': 'https://www.blogger.com/profile/18167479349893432461', 'displayTime': 'Jul 16, 2017, 4:18:00 AM', 'deleteclass': 'item-control blog-admin pid-281756913'];
var msgs = 'loadMore': 'Load more...', 'loading': 'Loading...', 'loaded': 'No more!', 'addComment': 'Add comment', 'reply': 'Reply', 'delete': 'Delete';
var config = 'blogId': '8193278726666811965', 'postId': '8492735029996736629', 'feed': 'https://www.mybloggertricks.com/feeds/8492735029996736629/comments/default', 'authorName': 'M. Mustafa Ahmedzai', 'authorUrl': 'https://www.blogger.com/profile/11681339458447132019', '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
piyush golaniJul 4, 2016, 10:59:00 PM
Hello Mohammad,
Thanks for one more amazing post.
I saw the demo and it really looks cool. The horizontal was also cool and this one is damm cool.
So thanks for sharing this plugin. I'm definitely going to implement this on my blog :)
Well Mohammad I must say one don't ask for giveaway on MBT as each and every post is like give away (just a thought).
Thanks once again,
Piyush :)
ReplyDelete
Replies
Mohammad Mustafa AhmedzaiJul 6, 2016, 2:20:00 AM
Hi Piyush
That was surely a precious feedback buddy and it is the only thing that helps me keep spreading knowledge. Thank you a lot for the nice words. This surely means a lot.
A lot of more useful widgets are on its way.
Happy Eid Mubarak buddy! =)
Delete
Prakash Kumar NiralaJul 6, 2016, 10:23:00 AM
Nice Post,
I'm searching for this from long time and got here easily. Just want to say big thanks to you.
~Prakash
ReplyDelete
sulman qamarJul 12, 2016, 9:31:00 AM
hello handsome ,
huwa huwa huwa its working body :)thanx yar its really working i am happy to do that its first difficult work for me to do that ..
but the good thing is its working i am so happy to do that :)
i ll read your post now daily for my poor blog ..
thank you very much ..
ReplyDelete
sulman qamarJul 13, 2016, 9:09:00 PM
Hi Ahmedzai,
I'm go through your article that's plugin really work :)
I'm new in that field I'm follow most of your teaching inshallah soon i ll like you :)
try to share most valuable information like that ..
~salman qamar
ReplyDelete
Silas EmmanuelNov 11, 2016, 10:20:00 PM
Thanks so much! I've already used your recent comments and random posts widgets. I tried this one too, and it seems to work fine except it is not sliding. I have the listcount as 12 and animation as "slide". Do you know what I might have gotten wrong? I'm fine with it not sliding, though, if there's nothing I can do. :) Thanks again!
ReplyDelete
Silas EmmanuelNov 11, 2016, 10:24:00 PM
Of course, right after I ask for help, I see what I did wrong. :) I fixed it now, so nevermind. :) Thanks.
ReplyDelete
Mohammad Mustafa AhmedzaiDec 12, 2016, 11:40:00 PM
If the widget does not work for you please replace your jQuery link with this one:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script>
ReplyDelete
DanitaJul 16, 2017, 4:18:00 AM
I can not get the slider to retreive posts from my blog. I have replaced the url as noted. What do I need to do? I'm using a domain to mask the blogspot url. Which url do I use? Could I've tried both and neither pull up posts. Thank you
ReplyDelete