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': '475000346528057182', 'body': 'Well i m not so excited about it presently ......x3cbr /x3ex3cbr /x3eIt will take little time for pinterest to give more attractive options ..... I m not going to use it now .....', 'timestamp': '1334258772218', 'permalink': 'https://www.mybloggertricks.com/2012/04/7-hot-pinterest-tips-to-drive-more.html?showCommentx3d1334258772218#c475000346528057182', 'author': 'name': 'Haider Afridi', 'avatarUrl': '//lh4.googleusercontent.com/-44MCwY5Nzlo/AAAAAAAAAAI/AAAAAAAABdc/d_bea0H3JCI/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/15481591518444075766', 'displayTime': 'Apr 13, 2012, 12:26:00 AM', 'deleteclass': 'item-control blog-admin pid-1110849571', 'id': '2778317838151020106', 'body': 'thanks for this tip, i know my Travel blog http://outravel.blogspot.com will benefit on it since it contains images that will suite the likings of the pinterest users.x3cbr /x3ex3cbr /x3eone thing that i want to ask, what if your images is hotlink protected, will it still be shown in pinterest board?x3cbr /x3ex3cbr /x3esry for my bad english, hehe', 'timestamp': '1334258914704', 'permalink': 'https://www.mybloggertricks.com/2012/04/7-hot-pinterest-tips-to-drive-more.html?showCommentx3d1334258914704#c2778317838151020106', 'author': 'name': 'teejay encarges', 'avatarUrl': '//lh5.googleusercontent.com/-WTXqREDwgB0/AAAAAAAAAAI/AAAAAAAABcI/Wq3KP3j6uQU/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/04061735826057875596', 'displayTime': 'Apr 13, 2012, 12:28:00 AM', 'deleteclass': 'item-control blog-admin pid-829091893', 'id': '2066812725261404816', 'body': 'yes Pinterest is different from facebook and google plus. i think it will surely be more popular than facebook. getnetgyan.blogspot.com', 'timestamp': '1334288566179', 'permalink': 'https://www.mybloggertricks.com/2012/04/7-hot-pinterest-tips-to-drive-more.html?showCommentx3d1334288566179#c2066812725261404816', 'author': 'name': 'Pk sharma', 'avatarUrl': '//lh3.googleusercontent.com/zFdxGE77vvD2w5xHy6jkVuElKv-U9_9qLkRYK8OnbDeJPtjSZ82UPq5w6hJ-SAx3ds35', 'profileUrl': 'https://www.blogger.com/profile/03542627251776885355', 'displayTime': 'Apr 13, 2012, 8:42:00 AM', 'deleteclass': 'item-control blog-admin pid-276601567', 'id': '4559769035392976186', 'body': 'I was thinking how can i use Pinterest to drive traffic to my blog and waiting for some post regarding in it on your blog which I got.x3cbr /x3ex3cbr /x3eThanx for this amazing tips.x3cbr /x3ex3cbr /x3ehttp://all-for-computers.blogspot.in/', 'timestamp': '1334294618101', 'permalink': 'https://www.mybloggertricks.com/2012/04/7-hot-pinterest-tips-to-drive-more.html?showCommentx3d1334294618101#c4559769035392976186', 'author': 'name': 'Arbaz Khan', 'avatarUrl': '//lh3.googleusercontent.com/-wxoE6ZGaSWY/AAAAAAAAAAI/AAAAAAAAAHQ/6G25COHk0jY/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/11635857626254153954', 'displayTime': 'Apr 13, 2012, 10:23:00 AM', 'deleteclass': 'item-control blog-admin pid-750910363', 'id': '7596684307851989820', 'body': 'Yap,Thanks for the wonderful tips...Hy today is a special day our what 2 post in a row...I wish you could do a hattrick next time...You are doing great API.....The why you presented every thing was awesome.... :)', 'timestamp': '1334301676394', 'permalink': 'https://www.mybloggertricks.com/2012/04/7-hot-pinterest-tips-to-drive-more.html?showCommentx3d1334301676394#c7596684307851989820', 'author': 'name': 'FAIZAN ALI', 'avatarUrl': '//lh3.googleusercontent.com/zFdxGE77vvD2w5xHy6jkVuElKv-U9_9qLkRYK8OnbDeJPtjSZ82UPq5w6hJ-SAx3ds35', 'profileUrl': 'https://www.blogger.com/profile/04420446464276156950', 'displayTime': 'Apr 13, 2012, 12:21:00 PM', 'deleteclass': 'item-control blog-admin pid-1354227164', 'id': '4555517624670338596', 'body': 'Hi Mohammad, x3cbr /x3eThanks for the tips :)x3cbr /x3eItx26#39;s really useful. x3cbr /x3eI am also impressed with how pinterest works and how it inspires other websites to create more specific niche. Example is this site x3ca relx3dx22nofollowx22x3ehttp://www.pinfaves.comx3c/ax3ex3cbr /x3eItx26#39;s a website that we can call the best of pinterest pin where we can submit our most favorite pins and discuss, also do voting. Perhaps you are interested to check Pinfaves out?', 'timestamp': '1334332729219', 'permalink': 'https://www.mybloggertricks.com/2012/04/7-hot-pinterest-tips-to-drive-more.html?showCommentx3d1334332729219#c4555517624670338596', 'author': 'name': 'pinfaves', 'avatarUrl': '//lh3.googleusercontent.com/zFdxGE77vvD2w5xHy6jkVuElKv-U9_9qLkRYK8OnbDeJPtjSZ82UPq5w6hJ-SAx3ds35', 'profileUrl': 'https://www.blogger.com/profile/00664258008094165201', 'displayTime': 'Apr 13, 2012, 8:58:00 PM', 'deleteclass': 'item-control blog-admin pid-2017607517', 'id': '8083450387428096438', 'body': '@x3ca hrefx3dx22#c7596684307851989820x22 relx3dx22nofollowx22x3eFAIZAN ALIx3c/ax3ex3cbr /x3ex3cbr /x3ei updated mohammad with three posts, but he published only two.Ask him, why?:-)x3cbr /x3eand the way you say API is awesomex3cbr /x3ex3cbr /x3e@Arbaz Khanx3cbr /x3eapply them and share your success with us:)', 'timestamp': '1334336381252', 'permalink': 'https://www.mybloggertricks.com/2012/04/7-hot-pinterest-tips-to-drive-more.html?showCommentx3d1334336381252#c8083450387428096438', 'author': 'name': 'Rahmeen Ahmad Khan', 'avatarUrl': 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgE6go9ZGlXUVSgniJGAhUYpLWKq_xYqhMk_n-s18o8jsIQrX6_iLAm4KWM_8dAEk72a-439qyV9kJweKqVmYu1PZuOWkhNEyU8jly34jXG4NnN-BCofZQY6BKqZw9yFafXGA_W11SieTCH/s35/loneliness-negative-cognition.jpg', 'profileUrl': 'https://www.blogger.com/profile/03072704003692073931', 'displayTime': 'Apr 13, 2012, 9:59:00 PM', 'deleteclass': 'item-control blog-admin pid-2473953', 'id': '1141047945473251817', 'body': 'Dear thank you very much for your great post. x3cbr /x3eThis is really interesting post and i hope you will x3cbr /x3econtinue posting such interesting article.x3cbr /x3ex3cbr /x3ex3ca hrefx3dx22http://99-bloggertipstricks.blogspot.comx22 relx3dx22nofollowx22x3eBlogger Tips Tricksx3c/ax3e', 'timestamp': '1334385431188', 'permalink': 'https://www.mybloggertricks.com/2012/04/7-hot-pinterest-tips-to-drive-more.html?showCommentx3d1334385431188#c1141047945473251817', 'author': 'name': 'www.nokiasolution.com', 'avatarUrl': 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_t5ApBiWj4Gs0GxB47iIKOJbS7MVl6SdvYSI2oTQbrgEjvucDbRwgXXMEZukCbYEutjuic7CfA6fHFeQpyjyBy32rP62W0xqU-QghDQtWzS-nfn5cR1PT6rKTps46gbY9mKVIt6WwVidb/s35/niaz.jpg', 'profileUrl': 'https://www.blogger.com/profile/07893454805503267056', 'displayTime': 'Apr 14, 2012, 11:37:00 AM', 'deleteclass': 'item-control blog-admin pid-1527311693', 'id': '5973440923724905979', 'body': 'x3cspan classx3dx27deleted-commentx27x3eThis comment has been removed by the author.x3c/spanx3e', 'timestamp': '1334571301881', 'permalink': 'https://www.mybloggertricks.com/2012/04/7-hot-pinterest-tips-to-drive-more.html?showCommentx3d1334571301881#c5973440923724905979', 'author': 'name': 'Krishna Parmar', 'avatarUrl': 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9rkt0F_0j8C2bLgw7XJaDR2VvKubGLnr8lZNBHLfonM4oV8LczUT7Vo0t1AIHHfmephZ_Vj_OTiYYuYu898aCX34ZXulUND0sxwWoMbUhexevYXRZpK1qg6Y3W9eW9oCeSbruYPPPiKAd/s35/Krishna-Parmar.jpg', 'profileUrl': 'https://www.blogger.com/profile/06364341780496178945', 'displayTime': 'Apr 16, 2012, 3:15:00 PM', 'deleteclass': 'item-control blog-admin ', 'id': '463491474740721539', 'body': 'Thanks for this great post', 'timestamp': '1336872211349', 'permalink': 'https://www.mybloggertricks.com/2012/04/7-hot-pinterest-tips-to-drive-more.html?showCommentx3d1336872211349#c463491474740721539', 'author': 'name': 'Derek Odum', 'avatarUrl': '//lh5.googleusercontent.com/-XoQJW8QIopg/AAAAAAAAAAI/AAAAAAAAALE/icLZ4Y1fAXc/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/01377061757447942065', 'displayTime': 'May 13, 2012, 6:23:00 AM', 'deleteclass': 'item-control blog-admin pid-848566381', 'id': '2009034408253580239', 'body': 'Great Postx3cbr /x3ehttp://yaqoobzone.blogspot.com/', 'timestamp': '1351098722726', 'permalink': 'https://www.mybloggertricks.com/2012/04/7-hot-pinterest-tips-to-drive-more.html?showCommentx3d1351098722726#c2009034408253580239', 'author': 'name': 'Mohammed Yaqoob', 'avatarUrl': '//lh4.googleusercontent.com/-Ay7rq3Ja6-Q/AAAAAAAAAAI/AAAAAAAAB_c/79PqzuIdY2E/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/04634049596875115394', 'displayTime': 'Oct 24, 2012, 10:12:00 PM', 'deleteclass': 'item-control blog-admin pid-994638529'];
var msgs = 'loadMore': 'Load more...', 'loading': 'Loading...', 'loaded': 'No more!', 'addComment': 'Add comment', 'reply': 'Reply', 'delete': 'Delete';
var config = 'blogId': '8193278726666811965', 'postId': '7874986596389612669', 'feed': 'https://www.mybloggertricks.com/feeds/7874986596389612669/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
Haider AfridiApr 13, 2012, 12:26:00 AM
Well i m not so excited about it presently ......
It will take little time for pinterest to give more attractive options ..... I m not going to use it now .....
ReplyDelete
teejay encargesApr 13, 2012, 12:28:00 AM
thanks for this tip, i know my Travel blog http://outravel.blogspot.com will benefit on it since it contains images that will suite the likings of the pinterest users.
one thing that i want to ask, what if your images is hotlink protected, will it still be shown in pinterest board?
sry for my bad english, hehe
ReplyDelete
Pk sharmaApr 13, 2012, 8:42:00 AM
yes Pinterest is different from facebook and google plus. i think it will surely be more popular than facebook. getnetgyan.blogspot.com
ReplyDelete
Arbaz KhanApr 13, 2012, 10:23:00 AM
I was thinking how can i use Pinterest to drive traffic to my blog and waiting for some post regarding in it on your blog which I got.
Thanx for this amazing tips.
http://all-for-computers.blogspot.in/
ReplyDelete
FAIZAN ALIApr 13, 2012, 12:21:00 PM
Yap,Thanks for the wonderful tips...Hy today is a special day our what 2 post in a row...I wish you could do a hattrick next time...You are doing great API.....The why you presented every thing was awesome.... :)
ReplyDelete
pinfavesApr 13, 2012, 8:58:00 PM
Hi Mohammad,
Thanks for the tips :)
It's really useful.
I am also impressed with how pinterest works and how it inspires other websites to create more specific niche. Example is this site http://www.pinfaves.com
It's a website that we can call the best of pinterest pin where we can submit our most favorite pins and discuss, also do voting. Perhaps you are interested to check Pinfaves out?
ReplyDelete
Rahmeen Ahmad KhanApr 13, 2012, 9:59:00 PM
@FAIZAN ALI
i updated mohammad with three posts, but he published only two.Ask him, why?:-)
and the way you say API is awesome
@Arbaz Khan
apply them and share your success with us:)
ReplyDelete
www.nokiasolution.comApr 14, 2012, 11:37:00 AM
Dear thank you very much for your great post.
This is really interesting post and i hope you will
continue posting such interesting article.
Blogger Tips Tricks
ReplyDelete
Krishna ParmarApr 16, 2012, 3:15:00 PM
This comment has been removed by the author.
ReplyDelete
Derek OdumMay 13, 2012, 6:23:00 AM
Thanks for this great post
ReplyDelete
Mohammed YaqoobOct 24, 2012, 10:12:00 PM
Great Post
http://yaqoobzone.blogspot.com/
ReplyDelete