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': '7474719314753853578', 'body': 'Happy for returning to blogger.expecting more posts.', 'timestamp': '1503819566639', 'permalink': 'https://www.mybloggertricks.com/2017/08/social-media-buttons-blogger-posts.html?showCommentx3d1503819566639#c7474719314753853578', 'author': 'name': 'kavi yarasu', 'avatarUrl': '//lh5.googleusercontent.com/-cHJ49hXU9rc/AAAAAAAAAAI/AAAAAAAAAAA/DXO1oBwJjeE/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/14208379866888828311', 'displayTime': 'Aug 27, 2017, 12:39:00 PM', 'deleteclass': 'item-control blog-admin pid-112289626', 'id': '6068608390622251903', 'parentId': '7474719314753853578', 'body': 'Thank you Kavi. A lot of fresh widgets and plugins are on its way! :)', 'timestamp': '1504278741117', 'permalink': 'https://www.mybloggertricks.com/2017/08/social-media-buttons-blogger-posts.html?showCommentx3d1504278741117#c6068608390622251903', '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': 'Sep 1, 2017, 8:12:00 PM', 'deleteclass': 'item-control blog-admin pid-1736397285', 'id': '3146507923821378705', 'body': 'Awesome thing brother.. x3cbr /x3eJust a quick question, you removed total count from this, was that increasing the load time?', 'timestamp': '1504453228525', 'permalink': 'https://www.mybloggertricks.com/2017/08/social-media-buttons-blogger-posts.html?showCommentx3d1504453228525#c3146507923821378705', 'author': 'name': 'Ahsan Arshad', 'avatarUrl': '//lh3.googleusercontent.com/-Q7kwiVudsP0/AAAAAAAAAAI/AAAAAAAAKdM/yd78yQ3fn3k/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/07269350043394542741', 'displayTime': 'Sep 3, 2017, 8:40:00 PM', 'deleteclass': 'item-control blog-admin pid-1023268616', 'id': '384118510057739836', 'body': 'The new blog I am working on have super simple theme with super fast load time. The only things I am adding is this social media plugin. I also use different compression tools to reduce image sizes.x3cbr /x3eUsually, I add images with quotes and other useful things on it, so I want to add Pinterest plugin which allows readers to Pin images (A plugin that shows Pinterest button on every image). I am unable to find it on your blog, Let me know if its in the pipeline.x3cbr /x3eAs I donx26#39;t want to increase the load time. Do you recommend adding it?x3cbr /x3ex3cbr /x3eThanks :)', 'timestamp': '1504456221177', 'permalink': 'https://www.mybloggertricks.com/2017/08/social-media-buttons-blogger-posts.html?showCommentx3d1504456221177#c384118510057739836', 'author': 'name': 'Ahsan Arshad', 'avatarUrl': '//lh3.googleusercontent.com/-Q7kwiVudsP0/AAAAAAAAAAI/AAAAAAAAKdM/yd78yQ3fn3k/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/07269350043394542741', 'displayTime': 'Sep 3, 2017, 9:30:00 PM', 'deleteclass': 'item-control blog-admin pid-1023268616'];
var msgs = 'loadMore': 'Load more...', 'loading': 'Loading...', 'loaded': 'No more!', 'addComment': 'Add comment', 'reply': 'Reply', 'delete': 'Delete';
var config = 'blogId': '8193278726666811965', 'postId': '8457418782386020556', 'feed': 'https://www.mybloggertricks.com/feeds/8457418782386020556/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
kavi yarasuAug 27, 2017, 12:39:00 PM
Happy for returning to blogger.expecting more posts.
ReplyDelete
Replies
Mohammad Mustafa AhmedzaiSep 1, 2017, 8:12:00 PM
Thank you Kavi. A lot of fresh widgets and plugins are on its way! :)
Delete
Ahsan ArshadSep 3, 2017, 8:40:00 PM
Awesome thing brother..
Just a quick question, you removed total count from this, was that increasing the load time?
ReplyDelete
Ahsan ArshadSep 3, 2017, 9:30:00 PM
The new blog I am working on have super simple theme with super fast load time. The only things I am adding is this social media plugin. I also use different compression tools to reduce image sizes.
Usually, I add images with quotes and other useful things on it, so I want to add Pinterest plugin which allows readers to Pin images (A plugin that shows Pinterest button on every image). I am unable to find it on your blog, Let me know if its in the pipeline.
As I don't want to increase the load time. Do you recommend adding it?
Thanks :)
ReplyDelete