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': '969570944854504912', 'body': 'Thanks bro Qasim for sharing these awesome tools, thanks', 'timestamp': '1370647182383', 'permalink': 'https://www.mybloggertricks.com/2013/06/google-structured-data-tools.html?showCommentx3d1370647182383#c969570944854504912', 'author': 'name': 'Anonymous', 'avatarUrl': '//img1.blogblog.com/img/blank.gif', 'profileUrl': '', 'displayTime': 'Jun 8, 2013, 4:19:00 AM', 'deleteclass': 'item-control blog-admin pid-350748990', 'id': '6159260973711334441', 'body': 'I thought I already made best use of Webmaster Tools, but never noticed the data highlighter. Thanks Qasim. Bookmarked the page so that I donx26#39;t forget about it when I get the time to do it :)', 'timestamp': '1370657869591', 'permalink': 'https://www.mybloggertricks.com/2013/06/google-structured-data-tools.html?showCommentx3d1370657869591#c6159260973711334441', 'author': 'name': 'Brandon Lobo', 'avatarUrl': '//lh6.googleusercontent.com/-sv9cLYUmhFc/AAAAAAAAAAI/AAAAAAAAAY0/Olk5o4whM_o/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/01877915207186657466', 'displayTime': 'Jun 8, 2013, 7:17:00 AM', 'deleteclass': 'item-control blog-admin pid-974013943', 'id': '3642405417756869219', 'body': 'Hi Qasim,x3cbr /x3ex3cbr /x3eIf i tag a page twice or thrice in data highlighter what will happen in google SEO, it may affect to index on SEO?x3cbr /x3ex3cbr /x3emy blog url is http://you2shares.com ', 'timestamp': '1370659205519', 'permalink': 'https://www.mybloggertricks.com/2013/06/google-structured-data-tools.html?showCommentx3d1370659205519#c3642405417756869219', 'author': 'name': 'Srikanth CK', 'avatarUrl': '//lh4.googleusercontent.com/-Cd4cTDDPkts/AAAAAAAAAAI/AAAAAAAAKQ8/yuxXq4fcKqY/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/14935048214187671022', 'displayTime': 'Jun 8, 2013, 7:40:00 AM', 'deleteclass': 'item-control blog-admin pid-1060404414', 'id': '836180358657642916', 'body': 'Thanks Qasim Bro its indeed a very helpful tools for better seo strategy. ', 'timestamp': '1370663452919', 'permalink': 'https://www.mybloggertricks.com/2013/06/google-structured-data-tools.html?showCommentx3d1370663452919#c836180358657642916', 'author': 'name': 'Hafeez Khan', 'avatarUrl': '//lh5.googleusercontent.com/-g_HuIQ1v4d4/AAAAAAAAAAI/AAAAAAAAAYA/-JMAHdH_51A/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/11323379512452748145', 'displayTime': 'Jun 8, 2013, 8:50:00 AM', 'deleteclass': 'item-control blog-admin pid-199914664', 'id': '7744375194627577134', 'body': 'Must use tip to make SEO friendly blog. Thanks Qasim bro.', 'timestamp': '1370666040574', 'permalink': 'https://www.mybloggertricks.com/2013/06/google-structured-data-tools.html?showCommentx3d1370666040574#c7744375194627577134', 'author': 'name': 'Ankit Kumar Singla', 'avatarUrl': '//lh6.googleusercontent.com/-lLEJ_rhBMzg/AAAAAAAAAAI/AAAAAAAADeE/t9VWPUIuevs/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/10969988872596518558', 'displayTime': 'Jun 8, 2013, 9:34:00 AM', 'deleteclass': 'item-control blog-admin pid-2117266090', 'id': '1607042660481163222', 'body': 'thanks for sharing such useful article.. I have implemented many SEO tips on my technical blog http://www.webcodeexpert.com/ .can u please have a look and tell what more to do to make it more SEO friendly.', 'timestamp': '1370677054657', 'permalink': 'https://www.mybloggertricks.com/2013/06/google-structured-data-tools.html?showCommentx3d1370677054657#c1607042660481163222', 'author': 'name': 'Lalit Raghuvanshi', 'avatarUrl': '//lh6.googleusercontent.com/-tK3Pa3XegrM/AAAAAAAAAAI/AAAAAAAAAQU/fkXlSxsvWuY/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/08683129469402353148', 'displayTime': 'Jun 8, 2013, 12:37:00 PM', 'deleteclass': 'item-control blog-admin pid-1354946118', 'id': '588822295019572060', 'body': 'Nice article! i found it very intersting and helpful thankx for sharing :)x3cbr /x3emy sites: www.techvilli.blogspot.comx3cbr /x3ewww.lifeonkar.blogspot.com', 'timestamp': '1370687023658', 'permalink': 'https://www.mybloggertricks.com/2013/06/google-structured-data-tools.html?showCommentx3d1370687023658#c588822295019572060', 'author': 'name': 'Muhammad Shakil', 'avatarUrl': '//lh6.googleusercontent.com/-EXxwSiHvIIU/AAAAAAAAAAI/AAAAAAAAAFc/ywUSJQtAWb4/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/11353642285849141876', 'displayTime': 'Jun 8, 2013, 3:23:00 PM', 'deleteclass': 'item-control blog-admin pid-365224076', 'id': '7891241809930545714', 'body': 'thankx26#39;s for your tutor....', 'timestamp': '1370736914815', 'permalink': 'https://www.mybloggertricks.com/2013/06/google-structured-data-tools.html?showCommentx3d1370736914815#c7891241809930545714', 'author': 'name': 'windi amalia putri', 'avatarUrl': '//lh4.googleusercontent.com/-lg6EqRe3S5A/AAAAAAAAAAI/AAAAAAAAAHY/duyIQACoUOs/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/17286636542344226181', 'displayTime': 'Jun 9, 2013, 5:15:00 AM', 'deleteclass': 'item-control blog-admin pid-2094336925', 'id': '177289463440134766', 'parentId': '3642405417756869219', 'body': 'no it wonx26#39;t have much effect', 'timestamp': '1370872835201', 'permalink': 'https://www.mybloggertricks.com/2013/06/google-structured-data-tools.html?showCommentx3d1370872835201#c177289463440134766', 'author': 'name': 'Qasim Zaib', 'avatarUrl': '//lh5.googleusercontent.com/-LLmVPWl1q94/AAAAAAAAAAI/AAAAAAAADOk/T-PgU6Z58ko/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/08938578237404814539', 'displayTime': 'Jun 10, 2013, 7:00:00 PM', 'deleteclass': 'item-control blog-admin pid-2130658467', 'id': '832669956249589058', 'body': 'Whether it’s called structured data, rich snippets, microdata, semantic markup, using the relx3d tag, or hacking schema.org, structured data has been a hot topic this week in my SEO feeds and daily search discussions. And adoption of this markup is good news, because rich snippets have a lot of potential for high ROI in organic search marketing. :)', 'timestamp': '1370881389908', 'permalink': 'https://www.mybloggertricks.com/2013/06/google-structured-data-tools.html?showCommentx3d1370881389908#c832669956249589058', 'author': 'name': 'Daniel Benny Simanjuntak', 'avatarUrl': '//lh4.googleusercontent.com/-I-LYcyt1zSU/AAAAAAAAAAI/AAAAAAAAAoc/cueumOn1Jng/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/02284011263403920462', 'displayTime': 'Jun 10, 2013, 9:23:00 PM', 'deleteclass': 'item-control blog-admin pid-2014054968', 'id': '5838509225170188900', 'body': 'I was searching for tips to enhance my blogx26#39;s position in search results and I have come to the right place. Tanks for thr valuble info.', 'timestamp': '1371122576328', 'permalink': 'https://www.mybloggertricks.com/2013/06/google-structured-data-tools.html?showCommentx3d1371122576328#c5838509225170188900', 'author': 'name': 'sangam Ramamoorthy', 'avatarUrl': '//lh5.googleusercontent.com/-DYz8ybOXxmw/AAAAAAAAAAI/AAAAAAAAABw/8Dv7blYsJwo/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/01609427375083765174', 'displayTime': 'Jun 13, 2013, 4:22:00 PM', 'deleteclass': 'item-control blog-admin pid-391445892', 'id': '130504497027203665', 'body': 'how to implement microdata generated code in my blogger html?', 'timestamp': '1374384450428', 'permalink': 'https://www.mybloggertricks.com/2013/06/google-structured-data-tools.html?showCommentx3d1374384450428#c130504497027203665', 'author': 'name': 'Muhammad Uzair', 'avatarUrl': '//lh4.googleusercontent.com/-EgDJDaQgvwo/AAAAAAAAAAI/AAAAAAAACo4/-6ZzqrkNJhU/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/02057301163300732317', 'displayTime': 'Jul 21, 2013, 10:27:00 AM', 'deleteclass': 'item-control blog-admin pid-1142612089'];
var msgs = 'loadMore': 'Load more...', 'loading': 'Loading...', 'loaded': 'No more!', 'addComment': 'Add comment', 'reply': 'Reply', 'delete': 'Delete';
var config = 'blogId': '8193278726666811965', 'postId': '6962084202988678413', 'feed': 'https://www.mybloggertricks.com/feeds/6962084202988678413/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
AnonymousJun 8, 2013, 4:19:00 AM
Thanks bro Qasim for sharing these awesome tools, thanks
ReplyDelete
Brandon LoboJun 8, 2013, 7:17:00 AM
I thought I already made best use of Webmaster Tools, but never noticed the data highlighter. Thanks Qasim. Bookmarked the page so that I don't forget about it when I get the time to do it :)
ReplyDelete
Srikanth CKJun 8, 2013, 7:40:00 AM
Hi Qasim,
If i tag a page twice or thrice in data highlighter what will happen in google SEO, it may affect to index on SEO?
my blog url is http://you2shares.com
ReplyDelete
Replies
Qasim ZaibJun 10, 2013, 7:00:00 PM
no it won't have much effect
Delete
Hafeez KhanJun 8, 2013, 8:50:00 AM
Thanks Qasim Bro its indeed a very helpful tools for better seo strategy.
ReplyDelete
Ankit Kumar SinglaJun 8, 2013, 9:34:00 AM
Must use tip to make SEO friendly blog. Thanks Qasim bro.
ReplyDelete
Lalit RaghuvanshiJun 8, 2013, 12:37:00 PM
thanks for sharing such useful article.. I have implemented many SEO tips on my technical blog http://www.webcodeexpert.com/ .can u please have a look and tell what more to do to make it more SEO friendly.
ReplyDelete
Muhammad ShakilJun 8, 2013, 3:23:00 PM
Nice article! i found it very intersting and helpful thankx for sharing :)
my sites: www.techvilli.blogspot.com
www.lifeonkar.blogspot.com
ReplyDelete
windi amalia putriJun 9, 2013, 5:15:00 AM
thank's for your tutor....
ReplyDelete
Daniel Benny SimanjuntakJun 10, 2013, 9:23:00 PM
Whether it’s called structured data, rich snippets, microdata, semantic markup, using the rel= tag, or hacking schema.org, structured data has been a hot topic this week in my SEO feeds and daily search discussions. And adoption of this markup is good news, because rich snippets have a lot of potential for high ROI in organic search marketing. :)
ReplyDelete
sangam RamamoorthyJun 13, 2013, 4:22:00 PM
I was searching for tips to enhance my blog's position in search results and I have come to the right place. Tanks for thr valuble info.
ReplyDelete
Muhammad UzairJul 21, 2013, 10:27:00 AM
how to implement microdata generated code in my blogger html?
ReplyDelete