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': '1352247021171074080', 'body': 'Its an awesome widget. The only thing is it is not counting comments in google plus commenting system. We would be glad if you can incorporate that too. Thanks.', 'timestamp': '1400733842952', 'permalink': 'https://www.mybloggertricks.com/2014/05/most-commented-posts-widget-for-blogger.html?showCommentx3d1400733842952#c1352247021171074080', 'author': 'name': 'Kalyan Panja', 'avatarUrl': '//lh3.googleusercontent.com/-NRcs8AQ8Ymk/AAAAAAAAAAI/AAAAAAAABIs/KeOdnKpMhPs/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/00806730473428069202', 'displayTime': 'May 22, 2014, 9:44:00 AM', 'deleteclass': 'item-control blog-admin pid-1937308327', 'id': '1504479304786279213', 'body': 'Thanks for Share a great widget with us!x3cbr /x3ex3cbr /x3eThis is an Awesome and unique widget for blogger platform. This is looks like Worpress thesis themes x26quot;Kol Popular Articles widgetx26quot;x3cbr /x3ex3cbr /x3eBest regards,x3cbr /x3eMd. Atiqur Rahmanx3cbr /x3eWww.MyBloggerBlog.com', 'timestamp': '1400820174212', 'permalink': 'https://www.mybloggertricks.com/2014/05/most-commented-posts-widget-for-blogger.html?showCommentx3d1400820174212#c1504479304786279213', 'author': 'name': 'Anonymous', 'avatarUrl': '//img1.blogblog.com/img/blank.gif', 'profileUrl': '', 'displayTime': 'May 23, 2014, 9:42:00 AM', 'deleteclass': 'item-control blog-admin pid-1140812971', 'id': '8159669686634235481', 'body': 'Nice', 'timestamp': '1402543039114', 'permalink': 'https://www.mybloggertricks.com/2014/05/most-commented-posts-widget-for-blogger.html?showCommentx3d1402543039114#c8159669686634235481', 'author': 'name': 'Hamza Gujjar', 'avatarUrl': '//lh6.googleusercontent.com/-kkRUdukwrJo/AAAAAAAAAAI/AAAAAAAAAFQ/0c1gNPehdJM/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/00047795034802471415', 'displayTime': 'Jun 12, 2014, 8:17:00 AM', 'deleteclass': 'item-control blog-admin pid-768041328', 'id': '854362594504478994', 'body': 'Thank you so much for this.', 'timestamp': '1403688973605', 'permalink': 'https://www.mybloggertricks.com/2014/05/most-commented-posts-widget-for-blogger.html?showCommentx3d1403688973605#c854362594504478994', 'author': 'name': 'Prerna', 'avatarUrl': 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgu55xdrUJlwcJDxrmqEdLjn-ct9EmZT5XVvbLF6XvfnUYlTsk_LeezEC8GhglC84AVsGzM82gMeP9D-JyoJLCJU-rWY04GC-6tlIyCztlZkvF1xjXuNY2sVy-5aMXsIPKzQvsMnCKqcvk5/s35/Makeup%25252BReviews%25252BHall.jpg', 'profileUrl': 'https://www.blogger.com/profile/08899150002337511804', 'displayTime': 'Jun 25, 2014, 2:36:00 PM', 'deleteclass': 'item-control blog-admin pid-846687606', 'id': '7269189201538536199', 'body': 'Mohammad brother, very impressive up-gradation on Home page.. Keep it up. Thumbs up for you. May Allah bless you. ', 'timestamp': '1404560773824', 'permalink': 'https://www.mybloggertricks.com/2014/05/most-commented-posts-widget-for-blogger.html?showCommentx3d1404560773824#c7269189201538536199', 'author': 'name': 'Muhammad Faheem Usama', 'avatarUrl': '//lh6.googleusercontent.com/-6IBNpgFzOG4/AAAAAAAAAAI/AAAAAAAAAmI/eML1MM6bRhs/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/17822656736075660161', 'displayTime': 'Jul 5, 2014, 4:46:00 PM', 'deleteclass': 'item-control blog-admin pid-1734359674', 'id': '2432224655696612445', 'body': 'its not working for my website wildhacker.comx3cbr /x3ex3cbr /x3eplease help me........', 'timestamp': '1404905714603', 'permalink': 'https://www.mybloggertricks.com/2014/05/most-commented-posts-widget-for-blogger.html?showCommentx3d1404905714603#c2432224655696612445', 'author': 'name': 'Nik P', 'avatarUrl': '//lh3.googleusercontent.com/-RMafWDNsgjw/AAAAAAAAAAI/AAAAAAAAEXI/K4sQQ7J7R40/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/09195054672067515173', 'displayTime': 'Jul 9, 2014, 4:35:00 PM', 'deleteclass': 'item-control blog-admin pid-1731484994', 'id': '403782267860260513', 'body': 'Nice x3ca hrefx3dx22http://www.bloggerwidgetgenerators.com/x22 relx3dx22nofollowx22x3eBlogger Widgetx3c/ax3e :) ', 'timestamp': '1405611074131', 'permalink': 'https://www.mybloggertricks.com/2014/05/most-commented-posts-widget-for-blogger.html?showCommentx3d1405611074131#c403782267860260513', 'author': 'name': 'Nitin Maheta', 'avatarUrl': '//lh3.googleusercontent.com/-S6736xnCEVA/AAAAAAAAAAI/AAAAAAAALjU/5DvkXr8Z_GI/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/03900488406230245337', 'displayTime': 'Jul 17, 2014, 8:31:00 PM', 'deleteclass': 'item-control blog-admin pid-920305230', 'id': '6853172182887161750', 'body': 'Thank you x3cbr /x3e x3ca hrefx3dx22http://www.bloggersens.com/x22 relx3dx22nofollowx22x3eBlogger Templatesx3c/ax3e', 'timestamp': '1406476344647', 'permalink': 'https://www.mybloggertricks.com/2014/05/most-commented-posts-widget-for-blogger.html?showCommentx3d1406476344647#c6853172182887161750', 'author': 'name': 'b Sens', 'avatarUrl': '//lh6.googleusercontent.com/-TBi9O_jcR0s/AAAAAAAAAAI/AAAAAAAAADY/ZSsipOmw5I8/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/05838389015092670621', 'displayTime': 'Jul 27, 2014, 8:52:00 PM', 'deleteclass': 'item-control blog-admin pid-1465167357', 'id': '9087436957127317515', 'body': 'Awesome widget :Dx3cbr /x3ex3cbr /x3eThanks for sharing :D', 'timestamp': '1413110639786', 'permalink': 'https://www.mybloggertricks.com/2014/05/most-commented-posts-widget-for-blogger.html?showCommentx3d1413110639786#c9087436957127317515', 'author': 'name': 'Christian Dwi Wijaya', 'avatarUrl': '//lh6.googleusercontent.com/-aS9mYe5U-aY/AAAAAAAAAAI/AAAAAAAAGNg/SfJSIL5LQx8/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/03738819792475809782', 'displayTime': 'Oct 12, 2014, 3:43:00 PM', 'deleteclass': 'item-control blog-admin pid-1071085440', 'id': '7180167391358904308', 'body': 'I donx26#39;t know why, but this script generate me invalid html in tag ax3cbr /x3ex3cbr /x3ea hrefx3dx26quot;urlx26quot; x26quot;x3dx26quot;x26quot; targetx3dx26quot;_blankx26quot;x3cbr /x3ex3cbr /x3eMaybe becouse I modified it. Which part of code generates this x26quot;x3dx26quot;x26quot; ??x3cbr /x3e', 'timestamp': '1426021473685', 'permalink': 'https://www.mybloggertricks.com/2014/05/most-commented-posts-widget-for-blogger.html?showCommentx3d1426021473685#c7180167391358904308', 'author': 'name': 'Sylwia Sylwia', 'avatarUrl': '//lh6.googleusercontent.com/-azXpbSmh2Pc/AAAAAAAAAAI/AAAAAAAAAqQ/DJUKjsekV7I/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/14156522404979237066', 'displayTime': 'Mar 11, 2015, 2:04:00 AM', 'deleteclass': 'item-control blog-admin pid-1144053429', 'id': '2050567685625314976', 'body': 'Brother, Plz add this widget on Shortcode', 'timestamp': '1431179202695', 'permalink': 'https://www.mybloggertricks.com/2014/05/most-commented-posts-widget-for-blogger.html?showCommentx3d1431179202695#c2050567685625314976', 'author': 'name': 'মোঃ হারুন-অর-রশিদ', 'avatarUrl': 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiB0LOOk5ynX2i7w9hR8wL8q_scex5DQumDB4FgF6hfemGBw7xPIZKAYOcKpyhe1llNLGIHdw70ClxkzpfoG1zQOKKT-p4zr1IixhLQK8BDpi6llDy6Ucd5oDiEzIeNIswbV9ChRDoPR6o/s35/Rashid.png', 'profileUrl': 'https://www.blogger.com/profile/00480529276521184386', 'displayTime': 'May 9, 2015, 6:46:00 PM', 'deleteclass': 'item-control blog-admin pid-148603510', 'id': '4544463387626316788', 'body': 'itx26#39;s very beautiful, and we can know who the most comments in the article :)', 'timestamp': '1431798608122', 'permalink': 'https://www.mybloggertricks.com/2014/05/most-commented-posts-widget-for-blogger.html?showCommentx3d1431798608122#c4544463387626316788', 'author': 'name': 'Anonymous', 'avatarUrl': '//img1.blogblog.com/img/blank.gif', 'profileUrl': '', 'displayTime': 'May 16, 2015, 10:50:00 PM', 'deleteclass': 'item-control blog-admin pid-531334590', 'id': '7300627384730753405', 'body': 'Nice x3ca hrefx3dx22http://www.tricksuniversity.in/search/label/SEOx22 relx3dx22nofollowx22x3eBlogger widgetx3c/ax3e', 'timestamp': '1440135476659', 'permalink': 'https://www.mybloggertricks.com/2014/05/most-commented-posts-widget-for-blogger.html?showCommentx3d1440135476659#c7300627384730753405', 'author': 'name': 'Naresh Bagul', 'avatarUrl': '//lh5.googleusercontent.com/-MfBJaCpzt_w/AAAAAAAAAAI/AAAAAAAAABI/E_czoMUTTo4/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/15561143641892056009', 'displayTime': 'Aug 21, 2015, 10:37:00 AM', 'deleteclass': 'item-control blog-admin pid-1309279747', 'id': '5094610093181739849', 'body': 'Yahoo Pipes is dead now. Do you have any alternative?', 'timestamp': '1454835199529', 'permalink': 'https://www.mybloggertricks.com/2014/05/most-commented-posts-widget-for-blogger.html?showCommentx3d1454835199529#c5094610093181739849', 'author': 'name': 'Harwinder Singh', 'avatarUrl': '//lh3.googleusercontent.com/-2NNDRB5QnqU/AAAAAAAAAAI/AAAAAAAAHYY/xnqfszgTVZU/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/17448550860024926123', 'displayTime': 'Feb 7, 2016, 1:53:00 PM', 'deleteclass': 'item-control blog-admin pid-805282239'];
var msgs = 'loadMore': 'Load more...', 'loading': 'Loading...', 'loaded': 'No more!', 'addComment': 'Add comment', 'reply': 'Reply', 'delete': 'Delete';
var config = 'blogId': '8193278726666811965', 'postId': '3753023902345541512', 'feed': 'https://www.mybloggertricks.com/feeds/3753023902345541512/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
Kalyan PanjaMay 22, 2014, 9:44:00 AM
Its an awesome widget. The only thing is it is not counting comments in google plus commenting system. We would be glad if you can incorporate that too. Thanks.
ReplyDelete
AnonymousMay 23, 2014, 9:42:00 AM
Thanks for Share a great widget with us!
This is an Awesome and unique widget for blogger platform. This is looks like Worpress thesis themes "Kol Popular Articles widget"
Best regards,
Md. Atiqur Rahman
Www.MyBloggerBlog.com
ReplyDelete
Hamza GujjarJun 12, 2014, 8:17:00 AM
Nice
ReplyDelete
PrernaJun 25, 2014, 2:36:00 PM
Thank you so much for this.
ReplyDelete
Muhammad Faheem UsamaJul 5, 2014, 4:46:00 PM
Mohammad brother, very impressive up-gradation on Home page.. Keep it up. Thumbs up for you. May Allah bless you.
ReplyDelete
Nik PJul 9, 2014, 4:35:00 PM
its not working for my website wildhacker.com
please help me........
ReplyDelete
Nitin MahetaJul 17, 2014, 8:31:00 PM
Nice Blogger Widget :)
ReplyDelete
b SensJul 27, 2014, 8:52:00 PM
Thank you
Blogger Templates
ReplyDelete
Christian Dwi WijayaOct 12, 2014, 3:43:00 PM
Awesome widget :D
Thanks for sharing :D
ReplyDelete
Sylwia SylwiaMar 11, 2015, 2:04:00 AM
I don't know why, but this script generate me invalid html in tag a
a href="url" "="" target="_blank"
Maybe becouse I modified it. Which part of code generates this "="" ??
ReplyDelete
মোঃ হারুন-অর-রশিদMay 9, 2015, 6:46:00 PM
Brother, Plz add this widget on Shortcode
ReplyDelete
AnonymousMay 16, 2015, 10:50:00 PM
it's very beautiful, and we can know who the most comments in the article :)
ReplyDelete
Naresh BagulAug 21, 2015, 10:37:00 AM
Nice Blogger widget
ReplyDelete
Harwinder SinghFeb 7, 2016, 1:53:00 PM
Yahoo Pipes is dead now. Do you have any alternative?
ReplyDelete