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': '7748179882151584563', 'body': 'I did just so however no counter appears, but the Horizontal Social Sharing Bar works flawlessly..', 'timestamp': '1458592731486', 'permalink': 'https://www.mybloggertricks.com/2016/03/floating-social-sharing-bar.html?showCommentx3d1458592731486#c7748179882151584563', 'author': 'name': 'evaggelos evaggelou', 'avatarUrl': '//lh3.googleusercontent.com/-5n9_PDNEJmU/AAAAAAAAAAI/AAAAAAAAS9o/0WHX2ak1ivA/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/08323934542398485227', 'displayTime': 'Mar 22, 2016, 1:38:00 AM', 'deleteclass': 'item-control blog-admin pid-729047986', 'id': '7034045266606784519', 'body': 'Itx26#39;s strange, I do exactly as you write the article and while the test http://logismikofree.blogspot.gr blog works flawlessly not working on my official blog http://www.lovefortechnology.net. What have I done wrong?', 'timestamp': '1458599965049', 'permalink': 'https://www.mybloggertricks.com/2016/03/floating-social-sharing-bar.html?showCommentx3d1458599965049#c7034045266606784519', 'author': 'name': 'evaggelos evaggelou', 'avatarUrl': '//lh3.googleusercontent.com/-5n9_PDNEJmU/AAAAAAAAAAI/AAAAAAAAS9o/0WHX2ak1ivA/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/08323934542398485227', 'displayTime': 'Mar 22, 2016, 3:39:00 AM', 'deleteclass': 'item-control blog-admin pid-729047986', 'id': '7515090946118136492', 'body': 'Mohammad, everything seems okay how I found random solution, added java script http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js and the problem was solved ..', 'timestamp': '1458672714550', 'permalink': 'https://www.mybloggertricks.com/2016/03/floating-social-sharing-bar.html?showCommentx3d1458672714550#c7515090946118136492', 'author': 'name': 'evaggelos evaggelou', 'avatarUrl': '//lh3.googleusercontent.com/-5n9_PDNEJmU/AAAAAAAAAAI/AAAAAAAAS9o/0WHX2ak1ivA/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/08323934542398485227', 'displayTime': 'Mar 22, 2016, 11:51:00 PM', 'deleteclass': 'item-control blog-admin pid-729047986', 'id': '278548825123483941', 'body': 'Thanks for the widget bro...been a while i have been searching floating buttons that wont affect my webpage load time.', 'timestamp': '1458726365621', 'permalink': 'https://www.mybloggertricks.com/2016/03/floating-social-sharing-bar.html?showCommentx3d1458726365621#c278548825123483941', 'author': 'name': 'Adegbite Kelvin', 'avatarUrl': '//lh6.googleusercontent.com/-hkED9kpOVdI/AAAAAAAAAAI/AAAAAAAAABg/BNq83cRnggI/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/11033710129893422454', 'displayTime': 'Mar 23, 2016, 2:46:00 PM', 'deleteclass': 'item-control blog-admin pid-421325395', 'id': '4562707928498414651', 'body': 'Mohammad, I just did everything you said. But sharing not showing donx26#39;t know why please check my blog http://www.latestphonenews.com/', 'timestamp': '1459010746406', 'permalink': 'https://www.mybloggertricks.com/2016/03/floating-social-sharing-bar.html?showCommentx3d1459010746406#c4562707928498414651', 'author': 'name': 'Admin', 'avatarUrl': 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGyASmQroeiKMkpC-8N4WJsMl9IHGgbzour36xCBWCU-yZW4PXaVcwGpLdly14BgescFIS-KxOenR5SC6FNQxt5MwE-AHEemUV6qTPdqc7JHgL-g5zIRa9fR94rzbWcCAQCrLQsMXhpnUV/s35/www.amarfon.com.png', 'profileUrl': 'https://www.blogger.com/profile/01152111412598850998', 'displayTime': 'Mar 26, 2016, 9:45:00 PM', 'deleteclass': 'item-control blog-admin pid-512603151', 'id': '2189195071155701551', 'body': 'Hi, Ix26#39;ve tried to used but, the horizontal bar doesnx26#39;t appear and the vertical bar donx26#39;t add the counts of any social shares.', 'timestamp': '1459050453682', 'permalink': 'https://www.mybloggertricks.com/2016/03/floating-social-sharing-bar.html?showCommentx3d1459050453682#c2189195071155701551', 'author': 'name': 'Mercedes Balda', 'avatarUrl': '//lh4.googleusercontent.com/-xWZ59_qajCE/AAAAAAAAAAI/AAAAAAAAAI0/yGxxk4Av2SI/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/15551595965623697609', 'displayTime': 'Mar 27, 2016, 8:47:00 AM', 'deleteclass': 'item-control blog-admin pid-296291896', 'id': '342266495237322827', 'parentId': '7515090946118136492', 'body': 'jQuery is a must to add inside your template. I am glad you added it. I have mentioned in the primary installation tutorial to include jQuery link. Glad you figured it out x3d)', 'timestamp': '1459159447292', 'permalink': 'https://www.mybloggertricks.com/2016/03/floating-social-sharing-bar.html?showCommentx3d1459159447292#c342266495237322827', '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': 'Mar 28, 2016, 3:04:00 PM', 'deleteclass': 'item-control blog-admin pid-1736397285', 'id': '4913284045473913251', 'parentId': '278548825123483941', 'body': 'You are always welcomed Adegbite x3d)', 'timestamp': '1459159478034', 'permalink': 'https://www.mybloggertricks.com/2016/03/floating-social-sharing-bar.html?showCommentx3d1459159478034#c4913284045473913251', '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': 'Mar 28, 2016, 3:04:00 PM', 'deleteclass': 'item-control blog-admin pid-1736397285', 'id': '1194980518953530178', 'body': 'Waiting for the wordpress version :-) ', 'timestamp': '1459174090495', 'permalink': 'https://www.mybloggertricks.com/2016/03/floating-social-sharing-bar.html?showCommentx3d1459174090495#c1194980518953530178', 'author': 'name': 'Usama Fayyaz', 'avatarUrl': '//lh3.googleusercontent.com/-pSYANifXQHs/AAAAAAAAAAI/AAAAAAAAABU/I-38UnUA-gE/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/01139060644329407336', 'displayTime': 'Mar 28, 2016, 7:08:00 PM', 'deleteclass': 'item-control blog-admin pid-910541940', 'id': '6502040211002799464', 'body': 'Its not working properly....it doesnt showing any vertical bar', 'timestamp': '1459175172047', 'permalink': 'https://www.mybloggertricks.com/2016/03/floating-social-sharing-bar.html?showCommentx3d1459175172047#c6502040211002799464', 'author': 'name': 'Ramees Kaztro', 'avatarUrl': '//lh4.googleusercontent.com/-b1z_9556_Vo/AAAAAAAAAAI/AAAAAAAABSU/_0UxgigLIco/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/10254736067166024285', 'displayTime': 'Mar 28, 2016, 7:26:00 PM', 'deleteclass': 'item-control blog-admin pid-1055333792', 'id': '948846498083967851', 'body': 'Work perfectly.x3cbr /x3eTime now to share a new template to your reader including all your great codes and plugins ;-)', 'timestamp': '1459204028112', 'permalink': 'https://www.mybloggertricks.com/2016/03/floating-social-sharing-bar.html?showCommentx3d1459204028112#c948846498083967851', 'author': 'name': 'Crack-net', 'avatarUrl': 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgz3ZGCUXIXaFxc-CvcABIZ91meEXbey7Qb1S0EkAxvUJadw6b8gSGXAfkH1Vr6YCNFB-iytoCgMB9O8I6IMmY2dIPU8J4uX3-kjwnwN1YGlPxYmFuQI2UhuvlAlQnrj6xTBh6Ys-lpab4/s35/manga.jpg', 'profileUrl': 'https://www.blogger.com/profile/03312853544091439968', 'displayTime': 'Mar 29, 2016, 3:27:00 AM', 'deleteclass': 'item-control blog-admin pid-1153252036', 'id': '8438159263392991786', 'body': 'I followed every step but nothing appears', 'timestamp': '1460054193557', 'permalink': 'https://www.mybloggertricks.com/2016/03/floating-social-sharing-bar.html?showCommentx3d1460054193557#c8438159263392991786', 'author': 'name': 'Muhammad Adeel', 'avatarUrl': '//lh5.googleusercontent.com/-8uIJiRw_GF8/AAAAAAAAAAI/AAAAAAAABHc/YAelUPOUwg0/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/13366763217306074980', 'displayTime': 'Apr 7, 2016, 11:36:00 PM', 'deleteclass': 'item-control blog-admin pid-619236376', 'id': '1997112946263800179', 'parentId': '8438159263392991786', 'body': 'are you sure you first installed the plugin x3ca hrefx3dx22http://www.mybloggertricks.com/2016/02/jumbo-share-counters-plugin.htmlx22 relx3dx22nofollowx22x3efrom here?x3c/ax3e Because most readers did make this mistake. Also check if you have jquery installed. ', 'timestamp': '1460925747998', 'permalink': 'https://www.mybloggertricks.com/2016/03/floating-social-sharing-bar.html?showCommentx3d1460925747998#c1997112946263800179', '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': 'Apr 18, 2016, 1:42:00 AM', 'deleteclass': 'item-control blog-admin pid-1736397285', 'id': '6674169375177229548', 'body': 'x3cbx3eNote:x3c/bx3e Most of you who could not see any counts are missing the important part of the tutorial. i.e. Installing the x3ca hrefx3dx22http://www.mybloggertricks.com/2016/02/jumbo-share-counters-plugin.htmlx22 relx3dx22nofollowx22x3eJumbo Share Countersx3c/ax3e Scriptx3cbr /x3ex3cbr /x3ePlease first install it and only then follow this tutorial. x3cbr /x3ex3cbr /x3eIf still it did not worked then share your blog URL, I will review your code.', 'timestamp': '1460925924594', 'permalink': 'https://www.mybloggertricks.com/2016/03/floating-social-sharing-bar.html?showCommentx3d1460925924594#c6674169375177229548', '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': 'Apr 18, 2016, 1:45:00 AM', 'deleteclass': 'item-control blog-admin pid-1736397285', 'id': '819952064560835785', 'parentId': '6674169375177229548', 'body': 'Mohammad bro, while not make a wordpress plugin. :D', 'timestamp': '1469100152228', 'permalink': 'https://www.mybloggertricks.com/2016/03/floating-social-sharing-bar.html?showCommentx3d1469100152228#c819952064560835785', 'author': 'name': 'Unknown', 'avatarUrl': '//lh3.googleusercontent.com/zFdxGE77vvD2w5xHy6jkVuElKv-U9_9qLkRYK8OnbDeJPtjSZ82UPq5w6hJ-SAx3ds35', 'profileUrl': 'https://www.blogger.com/profile/06067866045618948302', 'displayTime': 'Jul 21, 2016, 4:22:00 PM', 'deleteclass': 'item-control blog-admin pid-1574246518'];
var msgs = 'loadMore': 'Load more...', 'loading': 'Loading...', 'loaded': 'No more!', 'addComment': 'Add comment', 'reply': 'Reply', 'delete': 'Delete';
var config = 'blogId': '8193278726666811965', 'postId': '4828137336687746353', 'feed': 'https://www.mybloggertricks.com/feeds/4828137336687746353/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
evaggelos evaggelouMar 22, 2016, 1:38:00 AM
I did just so however no counter appears, but the Horizontal Social Sharing Bar works flawlessly..
ReplyDelete
evaggelos evaggelouMar 22, 2016, 3:39:00 AM
It's strange, I do exactly as you write the article and while the test http://logismikofree.blogspot.gr blog works flawlessly not working on my official blog http://www.lovefortechnology.net. What have I done wrong?
ReplyDelete
evaggelos evaggelouMar 22, 2016, 11:51:00 PM
Mohammad, everything seems okay how I found random solution, added java script http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js and the problem was solved ..
ReplyDelete
Replies
Mohammad Mustafa AhmedzaiMar 28, 2016, 3:04:00 PM
jQuery is a must to add inside your template. I am glad you added it. I have mentioned in the primary installation tutorial to include jQuery link. Glad you figured it out =)
Delete
Adegbite KelvinMar 23, 2016, 2:46:00 PM
Thanks for the widget bro...been a while i have been searching floating buttons that wont affect my webpage load time.
ReplyDelete
Replies
Mohammad Mustafa AhmedzaiMar 28, 2016, 3:04:00 PM
You are always welcomed Adegbite =)
Delete
AdminMar 26, 2016, 9:45:00 PM
Mohammad, I just did everything you said. But sharing not showing don't know why please check my blog http://www.latestphonenews.com/
ReplyDelete
Mercedes BaldaMar 27, 2016, 8:47:00 AM
Hi, I've tried to used but, the horizontal bar doesn't appear and the vertical bar don't add the counts of any social shares.
ReplyDelete
Usama FayyazMar 28, 2016, 7:08:00 PM
Waiting for the wordpress version :-)
ReplyDelete
Ramees KaztroMar 28, 2016, 7:26:00 PM
Its not working properly....it doesnt showing any vertical bar
ReplyDelete
Crack-netMar 29, 2016, 3:27:00 AM
Work perfectly.
Time now to share a new template to your reader including all your great codes and plugins ;-)
ReplyDelete
Muhammad AdeelApr 7, 2016, 11:36:00 PM
I followed every step but nothing appears
ReplyDelete
Replies
Mohammad Mustafa AhmedzaiApr 18, 2016, 1:42:00 AM
are you sure you first installed the plugin from here? Because most readers did make this mistake. Also check if you have jquery installed.
Delete
Mohammad Mustafa AhmedzaiApr 18, 2016, 1:45:00 AM
Note: Most of you who could not see any counts are missing the important part of the tutorial. i.e. Installing the Jumbo Share Counters Script
Please first install it and only then follow this tutorial.
If still it did not worked then share your blog URL, I will review your code.
ReplyDelete
Replies
UnknownJul 21, 2016, 4:22:00 PM
Mohammad bro, while not make a wordpress plugin. :D
Delete