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': '473919721949764651', 'body': 'Amazing, this is great way to make blogging easier :). Thanks for sharing this useful post. ', 'timestamp': '1385344983469', 'permalink': 'https://www.mybloggertricks.com/2013/11/publish-wordpress-posts-from-ms-word.html?showCommentx3d1385344983469#c473919721949764651', 'author': 'name': 'Syakir Rahman', 'avatarUrl': '//lh4.googleusercontent.com/-BQ45bgTvIIs/AAAAAAAAAAI/AAAAAAAAA6I/pQxeiAsIt_Y/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/03543874822331899233', 'displayTime': 'Nov 25, 2013, 7:03:00 AM', 'deleteclass': 'item-control blog-admin pid-1902097672', 'id': '8107541357603341400', 'body': 'Wow I havenx26#39;t upgraded to 2013 yet but I use Windows Live Writer which makes Blogging much easier. I only go to WP for SEO when the post is ready to go.', 'timestamp': '1386354778770', 'permalink': 'https://www.mybloggertricks.com/2013/11/publish-wordpress-posts-from-ms-word.html?showCommentx3d1386354778770#c8107541357603341400', 'author': 'name': 'Rhonda Chapman', 'avatarUrl': '//lh6.googleusercontent.com/-ossfc-ghoL0/AAAAAAAAAAI/AAAAAAAAAI4/l2absjEhZsE/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/02874699456180223567', 'displayTime': 'Dec 6, 2013, 11:32:00 PM', 'deleteclass': 'item-control blog-admin pid-2036902270', 'id': '1450823732615749424', 'body': 'Is this method bad for SEO?', 'timestamp': '1386730344974', 'permalink': 'https://www.mybloggertricks.com/2013/11/publish-wordpress-posts-from-ms-word.html?showCommentx3d1386730344974#c1450823732615749424', 'author': 'name': 'Faysal Shahi', 'avatarUrl': '//lh3.googleusercontent.com/-kizmMpHbCAU/AAAAAAAAAAI/AAAAAAAABDg/MWdZ521vVhc/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/12793946134354356310', 'displayTime': 'Dec 11, 2013, 7:52:00 AM', 'deleteclass': 'item-control blog-admin pid-477253450', 'id': '5141449186513573805', 'body': 'Amazing, this is great way to make blogging easier :). Thanks for sharing this useful post.', 'timestamp': '1386838612258', 'permalink': 'https://www.mybloggertricks.com/2013/11/publish-wordpress-posts-from-ms-word.html?showCommentx3d1386838612258#c5141449186513573805', 'author': 'name': 'jaicke chen', 'avatarUrl': '//lh4.googleusercontent.com/-25SX5DC0UP8/AAAAAAAAAAI/AAAAAAAAAB4/qvDANmNtlNs/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/03207723746100900998', 'displayTime': 'Dec 12, 2013, 1:56:00 PM', 'deleteclass': 'item-control blog-admin pid-596623557', 'id': '7587018723931881382', 'body': 'Nice Post Dear Adminx3cbr /x3ex3cbr /x3eHacking Tools, Software And Games.x3cbr /x3ehttp://focsoft.blogspot.comx3cbr /x3e', 'timestamp': '1391288243466', 'permalink': 'https://www.mybloggertricks.com/2013/11/publish-wordpress-posts-from-ms-word.html?showCommentx3d1391288243466#c7587018723931881382', 'author': 'name': 'Noreen Khan', 'avatarUrl': '//lh6.googleusercontent.com/-BaO3Sb17V_k/AAAAAAAAAAI/AAAAAAAAABQ/eyU-nX2Omps/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/11997876687088599207', 'displayTime': 'Feb 2, 2014, 1:57:00 AM', 'deleteclass': 'item-control blog-admin pid-1441970890', 'id': '7409082795862328105', 'body': 'What is difrent bitween Blogger and Wordpress????x3cbr /x3eand which one is u r using kindly tell mex26gt;??', 'timestamp': '1449075287773', 'permalink': 'https://www.mybloggertricks.com/2013/11/publish-wordpress-posts-from-ms-word.html?showCommentx3d1449075287773#c7409082795862328105', 'author': 'name': 'sajjad hussain', 'avatarUrl': '//lh3.googleusercontent.com/zFdxGE77vvD2w5xHy6jkVuElKv-U9_9qLkRYK8OnbDeJPtjSZ82UPq5w6hJ-SAx3ds35', 'profileUrl': 'https://www.blogger.com/profile/02727340059823306018', 'displayTime': 'Dec 2, 2015, 9:54:00 PM', 'deleteclass': 'item-control blog-admin pid-763915602'];
var msgs = 'loadMore': 'Load more...', 'loading': 'Loading...', 'loaded': 'No more!', 'addComment': 'Add comment', 'reply': 'Reply', 'delete': 'Delete';
var config = 'blogId': '8193278726666811965', 'postId': '1393412585226940809', 'feed': 'https://www.mybloggertricks.com/feeds/1393412585226940809/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
Syakir RahmanNov 25, 2013, 7:03:00 AM
Amazing, this is great way to make blogging easier :). Thanks for sharing this useful post.
ReplyDelete
Rhonda ChapmanDec 6, 2013, 11:32:00 PM
Wow I haven't upgraded to 2013 yet but I use Windows Live Writer which makes Blogging much easier. I only go to WP for SEO when the post is ready to go.
ReplyDelete
Faysal ShahiDec 11, 2013, 7:52:00 AM
Is this method bad for SEO?
ReplyDelete
jaicke chenDec 12, 2013, 1:56:00 PM
Amazing, this is great way to make blogging easier :). Thanks for sharing this useful post.
ReplyDelete
Noreen KhanFeb 2, 2014, 1:57:00 AM
Nice Post Dear Admin
Hacking Tools, Software And Games.
http://focsoft.blogspot.com
ReplyDelete
sajjad hussainDec 2, 2015, 9:54:00 PM
What is difrent bitween Blogger and Wordpress????
and which one is u r using kindly tell me>??
ReplyDelete