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': '6974157531155476875', 'body': 'Very nice post! I have a question is this like Breadcrumb Navigation?', 'timestamp': '1481677321026', 'permalink': 'https://www.mybloggertricks.com/2016/12/breaking-news-ticker-widget.html?showCommentx3d1481677321026#c6974157531155476875', 'author': 'name': 'Kumar Amit', 'avatarUrl': '//lh3.googleusercontent.com/-NY9YKs4a2VQ/AAAAAAAAAAI/AAAAAAAAAmg/ldI6IeXVhYE/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/02174667340921512441', 'displayTime': 'Dec 14, 2016, 6:02:00 AM', 'deleteclass': 'item-control blog-admin pid-1321470434', 'id': '7546391136619421799', 'body': 'No dear Kumar. It is a newticker that will display your post titles in scrolling animation.x3cbr /x3ex3cbr /x3eBreadcrumbs is a navigation method used to display categories and tags that link to your post so that search engines may know the structure of your site. x3cbr /x3e', 'timestamp': '1481800148863', 'permalink': 'https://www.mybloggertricks.com/2016/12/breaking-news-ticker-widget.html?showCommentx3d1481800148863#c7546391136619421799', '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': 'Dec 15, 2016, 4:09:00 PM', 'deleteclass': 'item-control blog-admin pid-1736397285', 'id': '2620177129212474837', 'body': 'man you r rock', 'timestamp': '1482089046628', 'permalink': 'https://www.mybloggertricks.com/2016/12/breaking-news-ticker-widget.html?showCommentx3d1482089046628#c2620177129212474837', 'author': 'name': 'urdu maza fun', 'avatarUrl': '//lh3.googleusercontent.com/zFdxGE77vvD2w5xHy6jkVuElKv-U9_9qLkRYK8OnbDeJPtjSZ82UPq5w6hJ-SAx3ds35', 'profileUrl': 'https://www.blogger.com/profile/01071321939469994664', 'displayTime': 'Dec 19, 2016, 12:24:00 AM', 'deleteclass': 'item-control blog-admin pid-543526708', 'id': '3788108542506169315', 'body': 'How to show post footer in comment author pic. and date like your blog', 'timestamp': '1482232586049', 'permalink': 'https://www.mybloggertricks.com/2016/12/breaking-news-ticker-widget.html?showCommentx3d1482232586049#c3788108542506169315', 'author': 'name': 'MO. MAHTAB', 'avatarUrl': '//lh4.googleusercontent.com/-tUGvxIrAcM8/AAAAAAAAAAI/AAAAAAAABGk/JaUZT9HjW9o/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/12521701743330646108', 'displayTime': 'Dec 20, 2016, 4:16:00 PM', 'deleteclass': 'item-control blog-admin pid-1069533339', 'id': '877024787218294571', 'body': 'How to show comment like your style with border..', 'timestamp': '1482428091462', 'permalink': 'https://www.mybloggertricks.com/2016/12/breaking-news-ticker-widget.html?showCommentx3d1482428091462#c877024787218294571', 'author': 'name': 'MO. MAHTAB', 'avatarUrl': '//lh4.googleusercontent.com/-tUGvxIrAcM8/AAAAAAAAAAI/AAAAAAAABGk/JaUZT9HjW9o/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/12521701743330646108', 'displayTime': 'Dec 22, 2016, 10:34:00 PM', 'deleteclass': 'item-control blog-admin pid-1069533339', 'id': '3088047837887720730', 'body': 'doesnt show on home page...it just only shown on the specific label page ix26#39;d write in HTML widget....how to show this on every page?..thanx', 'timestamp': '1484273262521', 'permalink': 'https://www.mybloggertricks.com/2016/12/breaking-news-ticker-widget.html?showCommentx3d1484273262521#c3088047837887720730', 'author': 'name': 'Takmir Masjid Al-Badar', 'avatarUrl': '//lh6.googleusercontent.com/-QwACxbNoZcA/AAAAAAAAAAI/AAAAAAAAAB8/bt55X-n2rJc/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/00995834302962909989', 'displayTime': 'Jan 13, 2017, 7:07:00 AM', 'deleteclass': 'item-control blog-admin pid-134386439', 'id': '5935965113769364077', 'parentId': '3088047837887720730', 'body': 'your template must have applied conditional tag on that widget section. change your widget location', 'timestamp': '1485259121348', 'permalink': 'https://www.mybloggertricks.com/2016/12/breaking-news-ticker-widget.html?showCommentx3d1485259121348#c5935965113769364077', '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': 'Jan 24, 2017, 4:58:00 PM', 'deleteclass': 'item-control blog-admin pid-1736397285', 'id': '8349625969009951003', 'body': 'thanks for this tutorial..but in responsive mobile view, the title doesx26#39;nt visible, only the author, date alone is seen...how to remove these...i want only the title to be shown.', 'timestamp': '1488440083771', 'permalink': 'https://www.mybloggertricks.com/2016/12/breaking-news-ticker-widget.html?showCommentx3d1488440083771#c8349625969009951003', 'author': 'name': 'Lucky booklover', 'avatarUrl': '//lh3.googleusercontent.com/-7GNzjkgpTFs/AAAAAAAAAAI/AAAAAAAAA6k/TZdEiNkDKPM/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/05299542096001196827', 'displayTime': 'Mar 2, 2017, 12:34:00 PM', 'deleteclass': 'item-control blog-admin pid-945732473', 'id': '9025014138864482206', 'body': 'hellow how to add two more labels', 'timestamp': '1489578858954', 'permalink': 'https://www.mybloggertricks.com/2016/12/breaking-news-ticker-widget.html?showCommentx3d1489578858954#c9025014138864482206', 'author': 'name': 'mohamed althaf', 'avatarUrl': '//lh6.googleusercontent.com/-HaUr0zvyvbs/AAAAAAAAAAI/AAAAAAAAAl8/0vgL7PsO3LQ/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/17534061814374390104', 'displayTime': 'Mar 15, 2017, 4:54:00 PM', 'deleteclass': 'item-control blog-admin pid-1528558377', 'id': '9131238605053394891', 'body': 'please reaply me', 'timestamp': '1489601192756', 'permalink': 'https://www.mybloggertricks.com/2016/12/breaking-news-ticker-widget.html?showCommentx3d1489601192756#c9131238605053394891', 'author': 'name': 'mohamed althaf', 'avatarUrl': '//lh6.googleusercontent.com/-HaUr0zvyvbs/AAAAAAAAAAI/AAAAAAAAAl8/0vgL7PsO3LQ/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/17534061814374390104', 'displayTime': 'Mar 15, 2017, 11:06:00 PM', 'deleteclass': 'item-control blog-admin pid-1528558377', 'id': '7638261136549513858', 'body': 'How to remove comment image and comments counter and date... My title doesnx26#39;t seen on mobile', 'timestamp': '1491450584679', 'permalink': 'https://www.mybloggertricks.com/2016/12/breaking-news-ticker-widget.html?showCommentx3d1491450584679#c7638261136549513858', 'author': 'name': 'Fact Buzz', 'avatarUrl': '//lh6.googleusercontent.com/-UzAhMtzQxyk/AAAAAAAAAAI/AAAAAAAAAJk/4zic7Hs7_7c/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/09338847897926733062', 'displayTime': 'Apr 6, 2017, 8:49:00 AM', 'deleteclass': 'item-control blog-admin pid-359019811', 'id': '535714865327441710', 'body': 'thx, your hero blogger', 'timestamp': '1494292688855', 'permalink': 'https://www.mybloggertricks.com/2016/12/breaking-news-ticker-widget.html?showCommentx3d1494292688855#c535714865327441710', 'author': 'name': 'TS Faizal', 'avatarUrl': '//lh6.googleusercontent.com/-cpYu-pkMaFg/AAAAAAAAAAI/AAAAAAAAEpA/eB_CvdMsvlg/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/08154741801796811843', 'displayTime': 'May 9, 2017, 6:18:00 AM', 'deleteclass': 'item-control blog-admin pid-1575938901', 'id': '8827008972679612951', 'body': 'Assalamualaykum Dear Sir,x3cbr /x3eI Had Applied This Jquery Breaking News Ticker Widget From Your Website And Works For Approx Two Weeks But After 2 Weeks It Disappeared From My 1st Blog Check This https://freewarearena.blogspot.com/ And Again Not Working In My 2nd Blog https://newprogramforu.blogspot.com/x3cbr /x3eThanks Waiting For Your Answer.', 'timestamp': '1503857781396', 'permalink': 'https://www.mybloggertricks.com/2016/12/breaking-news-ticker-widget.html?showCommentx3d1503857781396#c8827008972679612951', 'author': 'name': 'Usama Tariq', 'avatarUrl': '//lh4.googleusercontent.com/-0e5mLPvUtrU/AAAAAAAAAAI/AAAAAAAADTY/FNlPCTrCUeU/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/17889130914490015203', 'displayTime': 'Aug 27, 2017, 11:16:00 PM', 'deleteclass': 'item-control blog-admin pid-214653107', 'id': '7608775128446003927', 'body': 'how to apply the script directly inside the template..??x3cbr /x3enot on bloggerx26#39;s widget layout ??x3cbr /x3ex3cbr /x3eand what is the differrence between the script on layout and inside template directly..??', 'timestamp': '1531655290005', 'permalink': 'https://www.mybloggertricks.com/2016/12/breaking-news-ticker-widget.html?showCommentx3d1531655290005#c7608775128446003927', 'author': 'name': 'Author', 'avatarUrl': 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3E7BAKL4rykn2Ne98j4hFeDzQZS4fXCyeG3B6GwPOT7bJd1buuZW7Nraa2Q8kecmdenYE8eRDSh-SXTEwzX48JRSV2PQ7xEyE1ar2JU8bc-zkJm39KKJ5QadFCmsgPVdEMt13TnWij_c/s35/capung2.jpg', 'profileUrl': 'https://www.blogger.com/profile/03822196714925248276', 'displayTime': 'Jul 15, 2018, 4:48:00 PM', 'deleteclass': 'item-control blog-admin pid-1997941882'];
var msgs = 'loadMore': 'Load more...', 'loading': 'Loading...', 'loaded': 'No more!', 'addComment': 'Add comment', 'reply': 'Reply', 'delete': 'Delete';
var config = 'blogId': '8193278726666811965', 'postId': '7856363686881337103', 'feed': 'https://www.mybloggertricks.com/feeds/7856363686881337103/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
Kumar AmitDec 14, 2016, 6:02:00 AM
Very nice post! I have a question is this like Breadcrumb Navigation?
ReplyDelete
Mohammad Mustafa AhmedzaiDec 15, 2016, 4:09:00 PM
No dear Kumar. It is a newticker that will display your post titles in scrolling animation.
Breadcrumbs is a navigation method used to display categories and tags that link to your post so that search engines may know the structure of your site.
ReplyDelete
urdu maza funDec 19, 2016, 12:24:00 AM
man you r rock
ReplyDelete
MO. MAHTABDec 20, 2016, 4:16:00 PM
How to show post footer in comment author pic. and date like your blog
ReplyDelete
MO. MAHTABDec 22, 2016, 10:34:00 PM
How to show comment like your style with border..
ReplyDelete
Takmir Masjid Al-BadarJan 13, 2017, 7:07:00 AM
doesnt show on home page...it just only shown on the specific label page i'd write in HTML widget....how to show this on every page?..thanx
ReplyDelete
Replies
Mohammad Mustafa AhmedzaiJan 24, 2017, 4:58:00 PM
your template must have applied conditional tag on that widget section. change your widget location
Delete
Lucky bookloverMar 2, 2017, 12:34:00 PM
thanks for this tutorial..but in responsive mobile view, the title does'nt visible, only the author, date alone is seen...how to remove these...i want only the title to be shown.
ReplyDelete
mohamed althafMar 15, 2017, 4:54:00 PM
hellow how to add two more labels
ReplyDelete
mohamed althafMar 15, 2017, 11:06:00 PM
please reaply me
ReplyDelete
Fact BuzzApr 6, 2017, 8:49:00 AM
How to remove comment image and comments counter and date... My title doesn't seen on mobile
ReplyDelete
TS FaizalMay 9, 2017, 6:18:00 AM
thx, your hero blogger
ReplyDelete
Usama TariqAug 27, 2017, 11:16:00 PM
Assalamualaykum Dear Sir,
I Had Applied This Jquery Breaking News Ticker Widget From Your Website And Works For Approx Two Weeks But After 2 Weeks It Disappeared From My 1st Blog Check This https://freewarearena.blogspot.com/ And Again Not Working In My 2nd Blog https://newprogramforu.blogspot.com/
Thanks Waiting For Your Answer.
ReplyDelete
AuthorJul 15, 2018, 4:48:00 PM
how to apply the script directly inside the template..??
not on blogger's widget layout ??
and what is the differrence between the script on layout and inside template directly..??
ReplyDelete