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': '8611939801756414832', 'body': 'assalm o alikum qasim bro.x3cbr /x3eNice article bro.x3cbr /x3ex3cbr /x3ebhai jaan me jab koi bhi article facebook ya google+ per share kerta ho to us me article per lgai hoi picture ane k bjae meri picture show ho rahi he.x3cbr /x3ekya aap k pas is ka koi hal he', 'timestamp': '1400654847906', 'permalink': 'https://www.mybloggertricks.com/2014/05/who-is-not-following-you-back-on-twitter.html?showCommentx3d1400654847906#c8611939801756414832', 'author': 'name': 'H.Wajid Ali', 'avatarUrl': '//lh4.googleusercontent.com/-qjltmJvXAnU/AAAAAAAAAAI/AAAAAAAAAXM/f_eQSZrdZkk/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/15762976559614582051', 'displayTime': 'May 21, 2014, 11:47:00 AM', 'deleteclass': 'item-control blog-admin pid-1482954822', 'id': '8068635539341750175', 'parentId': '8611939801756414832', 'body': 'Brother Aap Picture shift bhi kar sakte hai jab aap share karte hai Facebook ya Google+ pe.....2 thumbnail ka option ata Hogaaa...dhayan se dekhnaa', 'timestamp': '1400724549369', 'permalink': 'https://www.mybloggertricks.com/2014/05/who-is-not-following-you-back-on-twitter.html?showCommentx3d1400724549369#c8068635539341750175', 'author': 'name': 'Atinder Singh', 'avatarUrl': '//lh5.googleusercontent.com/-rPl-T06CSfA/AAAAAAAAAAI/AAAAAAAACwc/U-jru2fIlGk/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/14702823220062621126', 'displayTime': 'May 22, 2014, 7:09:00 AM', 'deleteclass': 'item-control blog-admin pid-1857040448', 'id': '4184964708507662701', 'body': 'Asslam o Alikum Qasim brother..x3cbr /x3ex3cbr /x3eBhaiiii jan boht hi shandar boht hi aaalaa Article hay thankx to sharing with us.x3cbr /x3ex3cbr /x3ex3cbr /x3ex3ca hrefx3dx22http://www.truewisdomclothing.comx22 relx3dx22nofollowx22x3e mens Hoodies x3c/ax3e', 'timestamp': '1401101302995', 'permalink': 'https://www.mybloggertricks.com/2014/05/who-is-not-following-you-back-on-twitter.html?showCommentx3d1401101302995#c4184964708507662701', 'author': 'name': 'Fida Rana', 'avatarUrl': '//lh4.googleusercontent.com/--EBQbq-5Wag/AAAAAAAAAAI/AAAAAAAAAHI/C6wSOxhFOSc/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/02389399206144316725', 'displayTime': 'May 26, 2014, 3:48:00 PM', 'deleteclass': 'item-control blog-admin pid-1815038790'];
var msgs = 'loadMore': 'Load more...', 'loading': 'Loading...', 'loaded': 'No more!', 'addComment': 'Add comment', 'reply': 'Reply', 'delete': 'Delete';
var config = 'blogId': '8193278726666811965', 'postId': '8785111329894709777', 'feed': 'https://www.mybloggertricks.com/feeds/8785111329894709777/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
H.Wajid AliMay 21, 2014, 11:47:00 AM
assalm o alikum qasim bro.
Nice article bro.
bhai jaan me jab koi bhi article facebook ya google+ per share kerta ho to us me article per lgai hoi picture ane k bjae meri picture show ho rahi he.
kya aap k pas is ka koi hal he
ReplyDelete
Replies
Atinder SinghMay 22, 2014, 7:09:00 AM
Brother Aap Picture shift bhi kar sakte hai jab aap share karte hai Facebook ya Google+ pe.....2 thumbnail ka option ata Hogaaa...dhayan se dekhnaa
Delete
Fida RanaMay 26, 2014, 3:48:00 PM
Asslam o Alikum Qasim brother..
Bhaiiii jan boht hi shandar boht hi aaalaa Article hay thankx to sharing with us.
mens Hoodies
ReplyDelete