Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5848463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:51:46+00:00 2026-05-22T12:51:46+00:00

A follow up question to my previous one. R Colored dendrogram suggestions? I’m usine

  • 0

A follow up question to my previous one. R Colored dendrogram suggestions?
I’m usine the A2R library,
http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=79
By default it limits the string length of the labels to six characters, I am trying to figure out how to allow for longer strings in the labels, as my labels are much longer.
Reading the library currently, any thoughts?
Also trying to figure out how to change font size as well.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T12:51:47+00:00Added an answer on May 22, 2026 at 12:51 pm

    At the moment the 6 character limit is hard coded into that function. You need to hack it and the place to do so is in this section:

    if (show.labels) {
        par(mar = c(0, 0, 0, 4))
        par(srt = 90)
        obs.labels <- toupper(substr(x$labels[x$order], 1, 6))
        if (is.null(members)) {
            plot(0, type = "n", xlim = c(0.5, n.indiv + 0.5), 
                ylim = c(0, 1), xaxs = "i", axes = FALSE, xlab = "", 
                ylab = "")
            text(1:n.indiv, 0, obs.labels, pos = 4, col = col.down[groups.o])
        }
    

    As you make the labels longer, you will need to either shrink the text inside the labels argument of text() with a cex less than 1 (which is now hard-coded by default, since there is no “…” argument processing) or will need to hack the margin sizes in the rest of the code that sets up the plot layout. I have tested it, and this does work when suitably used to replace the above section in an overwritten version of this function:

    if (show.labels) {
        par(mar = c(0, 0, 0, 4))
        par(srt = 90)
        obs.labels <- toupper(substr(x$labels[x$order], 1, 12))
        if (is.null(members)) {
            plot(0, type = "n", xlim = c(0.5, n.indiv + 0.5), 
                ylim = c(0, 1), xaxs = "i", axes = FALSE, xlab = "", 
                ylab = "")
            text(1:n.indiv, 0, obs.labels, pos = 4, cex=0.5, col = col.down[groups.o])
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a follow-up question to my previous one . Situation: Table 1: +--------------------+--------------------+
This is really a follow on question to a previous one , where I
This question is a follow-up question to my previous one that can be found
This question is a follow up to my previous question about getting the HTML
In a follow-up to a previous question regarding exceptions, what are best practices for
As a follow up to my previous question , I am wondering how to
This is a follow-up to a previous question I had about interfaces. I received
This is a follow-up question to this one . Take a look at these
This is a follow-up questions on a previous one . Consider this code, which
This is a follow-on question to C++0x rvalue references and temporaries In the previous

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.