Giter Club home page Giter Club logo

Comments (10)

AllanCameron avatar AllanCameron commented on July 4, 2024

Thanks for writing.

Are you able to provide a reproducible example?

Using your code with a made-up data set of the same variables gives me the expected result:

set.seed(1234)

dt <- data.frame(year = rep(2015:2020, 3),
                 val = c(replicate(3, runif(6))),
                 Series = factor(paste("Series", rep(1:3, each = 6))))

library(geomtextpath)
#> Loading required package: ggplot2

ggplot(dt, aes(x = year, y = val)) + 
    scale_color_brewer(palette="Set1") +
    geom_textline(aes(label = Series, color = Series), vjust = -0.8, size = 6,
                  hjust = "ymax", linewidth = 2, text_smoothing = 30)

Created on 2022-05-04 by the reprex package (v2.0.1)

from geomtextpath.

j-sirgo avatar j-sirgo commented on July 4, 2024

Thanks for responding. I just tried your working example and I still get:

Warning message:
Ignoring unknown parameters: text_smoothing

Could it be the version of R or or another package?

from geomtextpath.

AllanCameron avatar AllanCameron commented on July 4, 2024

I don't know of another function called geom_textline - can you show the output of just typing geom_textlinein the console to ensure it is the correct version? Obviously a restart of Rstudio and a clean workspace are worth a try too.

from geomtextpath.

j-sirgo avatar j-sirgo commented on July 4, 2024

Here is the output:

> geom_textline
function (mapping = NULL, data = NULL, stat = "identity", 
    position = "identity", na.rm = FALSE, orientation = NA, 
    show.legend = NA, inherit.aes = TRUE, ...) 
{
    layer(data = data, mapping = mapping, stat = stat, geom = GeomTextLine, 
        position = position, show.legend = show.legend, inherit.aes = inherit.aes, 
        params = list(na.rm = na.rm, orientation = orientation, 
            ...))
}
<bytecode: 0x00000000159e17c8>
<environment: namespace:geomtextpath>

from geomtextpath.

AllanCameron avatar AllanCameron commented on July 4, 2024

And running without other packages attached ? (except ggplot2 obviously)

from geomtextpath.

j-sirgo avatar j-sirgo commented on July 4, 2024

No. But I dropped

library(forcats)
library(ggforce)
library(ggrepel)
library(ggh4x)
library(ggstream)

And it did not produce the error. Perhaps one of these creates some confusion.

from geomtextpath.

AllanCameron avatar AllanCameron commented on July 4, 2024

Thanks for that. There must be a clash somewhere with one of these packages. I'll investigate and keep you posted.

from geomtextpath.

teunbrand avatar teunbrand commented on July 4, 2024

Judging by the function body, this might be from an older version of geomtextpath. Do you run into the same error with the current version on github? (remotes::install_github("AllanCameron/geomtextpath", quiet = TRUE))

from geomtextpath.

j-sirgo avatar j-sirgo commented on July 4, 2024

I am using the latest from GitHub geomtextpath_0.1.0.9000

from geomtextpath.

teunbrand avatar teunbrand commented on July 4, 2024

In that case I don't understand why the function body you printed contains params = list(na.rm = na.rm whereas the github version has the following:

params = set_params(

from geomtextpath.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.