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': '7031648399145396244', 'body': 'Hi thanks brother, I become a regular crazy reader. So fantastic platform for blogger whether beginners or already expert. Thanks you so much once again', 'timestamp': '1379819420433', 'permalink': 'https://www.mybloggertricks.com/2013/09/yahoo-and-bing-features-that-google-lacks.html?showCommentx3d1379819420433#c7031648399145396244', 'author': 'name': 'Sri Kanth', 'avatarUrl': '//lh3.googleusercontent.com/-pRi52wt--V0/AAAAAAAAAAI/AAAAAAAAAoA/YU0UPS6qMf0/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/11527095154696170612', 'displayTime': 'Sep 22, 2013, 8:10:00 AM', 'deleteclass': 'item-control blog-admin pid-1521676291', 'id': '3247237291352094968', 'body': 'Nice article ! Bro :) Ix26#39;m also a blogger', 'timestamp': '1379831401117', 'permalink': 'https://www.mybloggertricks.com/2013/09/yahoo-and-bing-features-that-google-lacks.html?showCommentx3d1379831401117#c3247237291352094968', 'author': 'name': 'Yash Gohel', 'avatarUrl': '//3.bp.blogspot.com/-DsKFQsYSkBo/Uat9VgvjeMI/AAAAAAAAJYE/PdhKeeDXpxc/s35/Yash%25252BBlgr.jpg', 'profileUrl': 'https://www.blogger.com/profile/02654612782088407199', 'displayTime': 'Sep 22, 2013, 11:30:00 AM', 'deleteclass': 'item-control blog-admin pid-1488402213', 'id': '5938693539000356852', 'body': 'So, you do like lifehacker! (Me too)x3cbr /x3eThanks for information.', 'timestamp': '1379846597648', 'permalink': 'https://www.mybloggertricks.com/2013/09/yahoo-and-bing-features-that-google-lacks.html?showCommentx3d1379846597648#c5938693539000356852', 'author': 'name': 'Waseem Ashraf', 'avatarUrl': '//lh5.googleusercontent.com/-WNVanuh1ySM/AAAAAAAAAAI/AAAAAAAABO4/bBIngOadaxo/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/00406975147475546518', 'displayTime': 'Sep 22, 2013, 3:43:00 PM', 'deleteclass': 'item-control blog-admin pid-2072935846', 'id': '2047790162996184218', 'body': 'Wow thanks for info! :)x3cbr /x3eStill love Google and not need another wife, yet! LOLx3cbr /x3ex3cbr /x3eCheers,x3cbr /x3eFuji (Trigonalworld.com)', 'timestamp': '1379867416813', 'permalink': 'https://www.mybloggertricks.com/2013/09/yahoo-and-bing-features-that-google-lacks.html?showCommentx3d1379867416813#c2047790162996184218', 'author': 'name': 'Fuji Mulia', 'avatarUrl': '//lh4.googleusercontent.com/-CQBK6zbnlh8/AAAAAAAAAAI/AAAAAAAAFVo/erV81WFsO14/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/12599850878804850777', 'displayTime': 'Sep 22, 2013, 9:30:00 PM', 'deleteclass': 'item-control blog-admin pid-1524125795', 'id': '8997952901605052231', 'body': 'Mohammad Mustafa Bro,x3cbr /x3eHope youx26#39;re fine. Sorry for being not in touch from so long. Just visited your blog and I have to say that you and STC Network is really doing good. Good bro. x3cbr /x3eRemember? On 8th Feb, I asked you about the issue why blogger disabled my domain? Finally the sleepyheads have removed the blog PERMANENTLY and I am over with blogger. They holded my blog for 8 months and finally deleted it from their servers. I lost all my content now. And really, I still remember that email, that day, that moment. That email is still bookmarked in my inbox.x3cbr /x3eA tip for everyone. If you really have few bucks in hand, then never go with blogger from NOW. Sorry, these words may seem really bad to some people out here but this is what experience is. And I have faced it so I know it.x3cbr /x3ex3cbr /x3eThanks for reading though,x3cbr /x3eKind Regards,x3cbr /x3eMehul', 'timestamp': '1379868687346', 'permalink': 'https://www.mybloggertricks.com/2013/09/yahoo-and-bing-features-that-google-lacks.html?showCommentx3d1379868687346#c8997952901605052231', 'author': 'name': 'Mehul Mohan', 'avatarUrl': '//lh4.googleusercontent.com/-YN_BT5Hcly0/AAAAAAAAAAI/AAAAAAAAIfw/hTi3xFsFVH4/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/03118810440505006203', 'displayTime': 'Sep 22, 2013, 9:51:00 PM', 'deleteclass': 'item-control blog-admin pid-1203686617', 'id': '1058217787524086408', 'body': '@ Mehul : You always have an option to back up the data of blogger say you can do it on monthly basis and at best you lose only one month data. So Blogger is not that bad despite fear of removal and remember it has close to 100% uptime.x3cbr /x3ex3cbr /x3eRegardsx3cbr /x3ehttp://www.indian-share-tips.com/', 'timestamp': '1379907436799', 'permalink': 'https://www.mybloggertricks.com/2013/09/yahoo-and-bing-features-that-google-lacks.html?showCommentx3d1379907436799#c1058217787524086408', 'author': 'name': 'Analyst', 'avatarUrl': 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_qYXEQcI9iOt35TgqIx2PSA4T3jgxJQo73wkpJV0MPt_se_jR5s7Ee8zohduax3mxXG52wQjVMTkSfgogr7lpNOqxGeyti3FNv6k4N5QKL2CF5sZP65LlWYvtjmAql3d3cFx6Gox-GL8/s35/tiger1_normal.jpg', 'profileUrl': 'https://www.blogger.com/profile/15407504024389690040', 'displayTime': 'Sep 23, 2013, 8:37:00 AM', 'deleteclass': 'item-control blog-admin pid-1747920014', 'id': '6533320675624050349', 'body': 'Thanks Qasim Zaib, for sharing such a valuable information!x3cbr /x3eI invites you to visit my blog : http://www.codenirvana.in/x3cbr /x3eif possible, assist me to improve my seo, traffic and page rank.', 'timestamp': '1380986417951', 'permalink': 'https://www.mybloggertricks.com/2013/09/yahoo-and-bing-features-that-google-lacks.html?showCommentx3d1380986417951#c6533320675624050349', 'author': 'name': 'Code Nirvana', 'avatarUrl': '//lh3.googleusercontent.com/-nirufrwlJkM/AAAAAAAAAAI/AAAAAAAAAkw/rrJQeqnWJ3c/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/04765807266420924989', 'displayTime': 'Oct 5, 2013, 8:20:00 PM', 'deleteclass': 'item-control blog-admin pid-953191025'];
var msgs = 'loadMore': 'Load more...', 'loading': 'Loading...', 'loaded': 'No more!', 'addComment': 'Add comment', 'reply': 'Reply', 'delete': 'Delete';
var config = 'blogId': '8193278726666811965', 'postId': '525685792513707426', 'feed': 'https://www.mybloggertricks.com/feeds/525685792513707426/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
Sri KanthSep 22, 2013, 8:10:00 AM
Hi thanks brother, I become a regular crazy reader. So fantastic platform for blogger whether beginners or already expert. Thanks you so much once again
ReplyDelete
Yash GohelSep 22, 2013, 11:30:00 AM
Nice article ! Bro :) I'm also a blogger
ReplyDelete
Waseem AshrafSep 22, 2013, 3:43:00 PM
So, you do like lifehacker! (Me too)
Thanks for information.
ReplyDelete
Fuji MuliaSep 22, 2013, 9:30:00 PM
Wow thanks for info! :)
Still love Google and not need another wife, yet! LOL
Cheers,
Fuji (Trigonalworld.com)
ReplyDelete
Mehul MohanSep 22, 2013, 9:51:00 PM
Mohammad Mustafa Bro,
Hope you're fine. Sorry for being not in touch from so long. Just visited your blog and I have to say that you and STC Network is really doing good. Good bro.
Remember? On 8th Feb, I asked you about the issue why blogger disabled my domain? Finally the sleepyheads have removed the blog PERMANENTLY and I am over with blogger. They holded my blog for 8 months and finally deleted it from their servers. I lost all my content now. And really, I still remember that email, that day, that moment. That email is still bookmarked in my inbox.
A tip for everyone. If you really have few bucks in hand, then never go with blogger from NOW. Sorry, these words may seem really bad to some people out here but this is what experience is. And I have faced it so I know it.
Thanks for reading though,
Kind Regards,
Mehul
ReplyDelete
AnalystSep 23, 2013, 8:37:00 AM
@ Mehul : You always have an option to back up the data of blogger say you can do it on monthly basis and at best you lose only one month data. So Blogger is not that bad despite fear of removal and remember it has close to 100% uptime.
Regards
http://www.indian-share-tips.com/
ReplyDelete
Code NirvanaOct 5, 2013, 8:20:00 PM
Thanks Qasim Zaib, for sharing such a valuable information!
I invites you to visit my blog : http://www.codenirvana.in/
if possible, assist me to improve my seo, traffic and page rank.
ReplyDelete